[media] usb: musb: sunxi: support module autoloading
authorEmilio López <emilio.lopez@collabora.co.uk>
Mon, 22 Feb 2016 01:26:36 +0000 (22:26 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 3 Mar 2016 15:44:13 +0000 (12:44 -0300)
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>
drivers/usb/musb/sunxi.c

index d9b0dc461439aa414b9942826453fb44fd6941de..fdab4232cfbf606e268e301b4f06701765d0eaa2 100644 (file)
@@ -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,