summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/rndis.c
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2013-05-28 09:15:59 +0200
committerFelipe Balbi <balbi@ti.com>2013-06-10 17:58:09 +0300
commit76da66d1708d9df4cffa148546853b43249f4d76 (patch)
tree0392993607d9b2f55395485ac8219f0fe10c4898 /drivers/usb/gadget/rndis.c
parent9bd4a10e1bf881af0b0a7c117c7092b558447047 (diff)
downloadtalos-obmc-linux-76da66d1708d9df4cffa148546853b43249f4d76.tar.gz
talos-obmc-linux-76da66d1708d9df4cffa148546853b43249f4d76.zip
usb: gadget: rndis: init & exit rndis at module load/unload
This is required in preparation for using usb_gstrings_attach. The rndis initialization so far has been performed on the first occurence of rndis_bind(), but the condition to check it (first or not first) was "borrowed" from strings handling. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/rndis.c')
-rw-r--r--drivers/usb/gadget/rndis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c
index 8c5e95762e59..3e3ea7203030 100644
--- a/drivers/usb/gadget/rndis.c
+++ b/drivers/usb/gadget/rndis.c
@@ -1174,7 +1174,7 @@ int rndis_init(void)
return 0;
}
-EXPORT_SYMBOL(rndis_init);
+module_init(rndis_init);
void rndis_exit(void)
{
@@ -1188,6 +1188,6 @@ void rndis_exit(void)
}
#endif
}
-EXPORT_SYMBOL(rndis_exit);
+module_exit(rndis_exit);
MODULE_LICENSE("GPL");
OpenPOWER on IntegriCloud