summaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/sunxi.c
diff options
context:
space:
mode:
authorEmilio López <emilio.lopez@collabora.co.uk>2016-02-22 02:26:36 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-03-03 16:44:13 +0100
commit76485d8e04c337bcab90f62975a3db740c8c2dd4 (patch)
tree996222cf5892de60caefbfe3aea4224696f4503d /drivers/usb/musb/sunxi.c
parent[media] rc: sunxi-cir: support module autoloading (diff)
downloadlinux-76485d8e04c337bcab90f62975a3db740c8c2dd4.tar.xz
linux-76485d8e04c337bcab90f62975a3db740c8c2dd4.zip
[media] usb: musb: sunxi: support module autoloading
MODULE_DEVICE_TABLE() is missing, so the module isn't auto-loading on sunxi systems using the OTG controller. This commit adds the missing line so it loads automatically when building it as a module and running on a system with an USB OTG port. Signed-off-by: Emilio López <emilio.lopez@collabora.co.uk> Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/usb/musb/sunxi.c')
-rw-r--r--drivers/usb/musb/sunxi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c
index d9b0dc461439..fdab4232cfbf 100644
--- a/drivers/usb/musb/sunxi.c
+++ b/drivers/usb/musb/sunxi.c
@@ -752,6 +752,7 @@ static const struct of_device_id sunxi_musb_match[] = {
{ .compatible = "allwinner,sun8i-a33-musb", },
{}
};
+MODULE_DEVICE_TABLE(of, sunxi_musb_match);
static struct platform_driver sunxi_musb_driver = {
.probe = sunxi_musb_probe,