Re: [patch/RFC 2.6.18-rc] platform_device_probe(), to conserve memory

From: David Brownell
Date: Sun Sep 03 2006 - 22:40:14 EST


> From: Dmitry Torokhov <dtor@xxxxxxxxxxxxx>
> Date: Sun, 3 Sep 2006 21:34:29 -0400
>
> On Sunday 03 September 2006 21:23, David Brownell wrote:
> > 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 common system configurations.
> >
>
> If you do this you also need to kill drivers bind/unbind attributes
> to show that dynamic [un]binding is not supported.

Unbinding hasn't changed; so if that attribute breaks because of this,
it was already broken.

It might be important that drv->probe() be replaced with something
that always fails though, since it seems there's an odd assumption
that not having a probe() means the driver works for any device...

- Dave


--
VGER BF report: H 1.38493e-10
-
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/