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

From: Russell King
Date: Mon Apr 02 2007 - 17:59:29 EST


On Mon, Apr 02, 2007 at 04:16:03PM -0400, Dmitry Torokhov wrote:
> On 3/31/07, David Brownell <david-b@xxxxxxxxxxx> 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 platform_device_register_simple() as a one-step call to
> >allocate
> >+and register a device.
>
> DIdn't Russell want to convert eberything to platform_device_alloc and
> then nuke platfrom_device_register_simple()?

That was my long term plan - since I don't like APIs which "grow" lots
of different and redundant interfaces.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/