Re: [patch 2.6.21-rc5-git 2/2] update Documentation/driver-model/platform.txt

2007-04-02 Thread Russell King
On Mon, Apr 02, 2007 at 04:16:03PM -0400, Dmitry Torokhov wrote: > On 3/31/07, David Brownell <[EMAIL PROTECTED]> wrote: > >+A better solution is usually: > >+ > >+ struct platform_device *platform_device_register_simple( > >+ char *name, unsigned id, > >+

Re: [patch 2.6.21-rc5-git 2/2] update Documentation/driver-model/platform.txt

2007-04-02 Thread Dmitry Torokhov
On 3/31/07, David Brownell <[EMAIL PROTECTED]> wrote: +A better solution is usually: + + struct platform_device *platform_device_register_simple( + char *name, unsigned id, + struct resource *res, unsigned nres); + +You can use

Re: [patch 2.6.21-rc5-git 2/2] update Documentation/driver-model/platform.txt

2007-04-02 Thread Dmitry Torokhov
On 3/31/07, David Brownell [EMAIL PROTECTED] wrote: +A better solution is usually: + + struct platform_device *platform_device_register_simple( + char *name, unsigned id, + struct resource *res, unsigned nres); + +You can use

Re: [patch 2.6.21-rc5-git 2/2] update Documentation/driver-model/platform.txt

2007-04-02 Thread Russell King
On Mon, Apr 02, 2007 at 04:16:03PM -0400, Dmitry Torokhov wrote: On 3/31/07, David Brownell [EMAIL PROTECTED] wrote: +A better solution is usually: + + struct platform_device *platform_device_register_simple( + char *name, unsigned id, +

[patch 2.6.21-rc5-git 2/2] update Documentation/driver-model/platform.txt

2007-03-31 Thread David Brownell
Make note of the legacy "probe-the-hardware" drivers, and some APIs that are mostly unused except by such drivers. We probably can't escape having legacy drivers for a while (e.g. old ISA drivers), but we can at least discourage this style code for new drivers, and unless it's unavoidable.

[patch 2.6.21-rc5-git 2/2] update Documentation/driver-model/platform.txt

2007-03-31 Thread David Brownell
Make note of the legacy probe-the-hardware drivers, and some APIs that are mostly unused except by such drivers. We probably can't escape having legacy drivers for a while (e.g. old ISA drivers), but we can at least discourage this style code for new drivers, and unless it's unavoidable.