Re: 2.6.3 compilation problem

Keith Owens
2004-03-12T06:01:07Z

On Thu, 11 Mar 2004 21:42:04 -0800,
"H. J. Lu" <hjl@lucon.org> wrote:
>which means it will be discarded if the driver is builtin. If
>xxx_remove may be discarded, please make sure there is
>
>#ifdef MODULE
> remove: xxx_remove,
>#endif
>
>so that xxx_remove won't be included when the driver is builtin.

remove: __devexit_p(xxx_remove),

is the correct method. The pointer is required for CONFIG_MODULE
_or_ CONFIG_HOTPLUG, otherwise it must be set to NULL. __devexit_p()
does all that.