Messages in this thread Patch in this message | | | Date | Fri, 2 Aug 2002 09:24:56 +0000 | From | Felipe W Damasio <> | Subject | [PATCH] __devexit_p macro |
| |
Hi,
This patch defines __devexit_p when CONFIG_HOTPLUG || MODULE, instead of when just CONFIG_HOTPLUG is defined.
This is needed for some net drivers (at least) that use "remove_one" (which use unregister_netdev), allowing the driver to be re-installed.
This is the same behaviour that 2.4.
Patch against 2.5.30
Please consider pulling it from:
http://cscience.org/~coqueiro/linux/patches-fwd/2.5/init.h-__devexit_p.patch
Felipe
--- ./include/linux/init.h.orig Fri Aug 2 09:15:44 2002 +++ ./include/linux/init.h Fri Aug 2 09:06:39 2002 @@ -177,12 +177,16 @@ #define __devinitdata #define __devexit #define __devexitdata -#define __devexit_p(x) &(x) #else #define __devinit __init #define __devinitdata __initdata #define __devexit __exit #define __devexitdata __exitdata +#endif + +#ifdef MODULE || CONFIG_HOTPLUG +#define __devexit_p(x) &(x) +#else #define __devexit_p(x) 0 #endif - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |