Commit 65f6092517466fa18ad77743d39723787e8fa051

Authored by Arnd Bergmann
Committed by David S. Miller
1 parent 32a6d90bb3

drivers/net: add missing __devexit_p() annotations

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>

Showing 3 changed files with 3 additions and 3 deletions Side-by-side Diff

drivers/net/ethernet/micrel/ks8842.c
... ... @@ -1262,7 +1262,7 @@
1262 1262 .owner = THIS_MODULE,
1263 1263 },
1264 1264 .probe = ks8842_probe,
1265   - .remove = ks8842_remove,
  1265 + .remove = __devexit_p(ks8842_remove),
1266 1266 };
1267 1267  
1268 1268 module_platform_driver(ks8842_platform_driver);
drivers/net/wireless/b43/sdio.c
... ... @@ -193,7 +193,7 @@
193 193 .name = "b43-sdio",
194 194 .id_table = b43_sdio_ids,
195 195 .probe = b43_sdio_probe,
196   - .remove = b43_sdio_remove,
  196 + .remove = __devexit_p(b43_sdio_remove),
197 197 };
198 198  
199 199 int b43_sdio_init(void)
drivers/net/wireless/p54/p54usb.c
... ... @@ -1131,7 +1131,7 @@
1131 1131 .name = "p54usb",
1132 1132 .id_table = p54u_table,
1133 1133 .probe = p54u_probe,
1134   - .disconnect = p54u_disconnect,
  1134 + .disconnect = __devexit_p(p54u_disconnect),
1135 1135 .pre_reset = p54u_pre_reset,
1136 1136 .post_reset = p54u_post_reset,
1137 1137 #ifdef CONFIG_PM