Re: [patch 2.6.19-rc6] platform_driver_probe(), can save codespace

2006-11-17 Thread Dmitry Torokhov
On 11/17/06, David Brownell <[EMAIL PROTECTED]> wrote: On Friday 17 November 2006 11:11 am, Dmitry Torokhov wrote: > Do we discard __init sections in modules nowadays? I thought we did > that only for the kernel image itself. When did we _not_ discard them for modules? It looks like the firs

Re: [patch 2.6.19-rc6] platform_driver_probe(), can save codespace

2006-11-17 Thread David Brownell
On Friday 17 November 2006 11:11 am, Dmitry Torokhov wrote: > Do we discard __init sections in modules nowadays? I thought we did > that only for the kernel image itself. When did we _not_ discard them for modules? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the b

Re: [patch 2.6.19-rc6] platform_driver_probe(), can save codespace

2006-11-17 Thread Dmitry Torokhov
On 11/17/06, David Brownell <[EMAIL PROTECTED]> wrote: On Friday 17 November 2006 6:32 am, Dmitry Torokhov wrote: > On 11/17/06, David Brownell <[EMAIL PROTECTED]> wrote: > > + > > + /* Fixup that section violation, being paranoid about code scanning > > +* the list of drivers in or

Re: [patch 2.6.19-rc6] platform_driver_probe(), can save codespace

2006-11-17 Thread David Brownell
On Friday 17 November 2006 6:32 am, Dmitry Torokhov wrote: > On 11/17/06, David Brownell <[EMAIL PROTECTED]> wrote: > > + > > + /* Fixup that section violation, being paranoid about code scanning > > +* the list of drivers in order to probe new devices. Check to see > > +* if

Re: [patch 2.6.19-rc6] platform_driver_probe(), can save codespace

2006-11-17 Thread Dmitry Torokhov
On 11/17/06, David Brownell <[EMAIL PROTECTED]> wrote: + + /* Fixup that section violation, being paranoid about code scanning +* the list of drivers in order to probe new devices. Check to see +* if the probe was successful, and make sure any forced probes of +* ne

[patch 2.6.19-rc6] platform_driver_probe(), can save codespace

2006-11-17 Thread David Brownell
This defines a new platform_driver_probe() method allowing the driver's probe() method, and its support code+data, to safely live in __init sections for typical system configurations. Many system-on-chip processors could benefit from this API, to the tune of recovering hundreds to thousands of byt