drivers/net: add missing __devexit_p() annotations
authorArnd Bergmann <arnd@arndb.de>
Fri, 20 Apr 2012 10:56:10 +0000 (10:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2012 19:28:47 +0000 (15:28 -0400)
Drivers that refer to a __devexit function in an operations
structure need to annotate that pointer with __devexit_p so
replace it with a NULL pointer when the section gets discarded.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ks8842.c
drivers/net/wireless/b43/sdio.c
drivers/net/wireless/p54/p54usb.c

index f84dd2dc82b6181605bd74250eddf07593644095..24fb049ac2f28fd7f3c71559fdb3f96559eba495 100644 (file)
@@ -1262,7 +1262,7 @@ static struct platform_driver ks8842_platform_driver = {
                .owner  = THIS_MODULE,
        },
        .probe          = ks8842_probe,
-       .remove         = ks8842_remove,
+       .remove         = __devexit_p(ks8842_remove),
 };
 
 module_platform_driver(ks8842_platform_driver);
index 80b0755ed3afedd67debacc5f2c6349445f518c0..a54fb2d2908905729be68920664710a84c46f6b3 100644 (file)
@@ -193,7 +193,7 @@ static struct sdio_driver b43_sdio_driver = {
        .name           = "b43-sdio",
        .id_table       = b43_sdio_ids,
        .probe          = b43_sdio_probe,
-       .remove         = b43_sdio_remove,
+       .remove         = __devexit_p(b43_sdio_remove),
 };
 
 int b43_sdio_init(void)
index bac3d03f5786a245d565534dbdfffbfd190d2842..e1eac830e2fcc2525833dfc38e3afec5dc4139ea 100644 (file)
@@ -1131,7 +1131,7 @@ static struct usb_driver p54u_driver = {
        .name   = "p54usb",
        .id_table = p54u_table,
        .probe = p54u_probe,
-       .disconnect = p54u_disconnect,
+       .disconnect = __devexit_p(p54u_disconnect),
        .pre_reset = p54u_pre_reset,
        .post_reset = p54u_post_reset,
 #ifdef CONFIG_PM