Re: 2.6.3 compilation problem

From: Keith Owens <kaos_at_ocs.com.au>
Date: 2004-03-12 17:01:07
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.

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Mar 12 01:05:48 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:24 EST