diff mbox

[3/3] usb: musb: sunxi: support module autoloading

Message ID 1456104396-13282-3-git-send-email-emilio@elopez.com.ar
State New
Headers show

Commit Message

Emilio López Feb. 22, 2016, 1:26 a.m. UTC
From: Emilio López <emilio.lopez@collabora.co.uk>

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>
---
 drivers/usb/musb/sunxi.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Javier Martinez Canillas Feb. 29, 2016, 6:57 p.m. UTC | #1
Hello Emilio,

On Sun, Feb 21, 2016 at 10:26 PM, Emilio López <emilio@elopez.com.ar> wrote:
> From: Emilio López <emilio.lopez@collabora.co.uk>
>
> 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>

Best regards,
Javier
diff mbox

Patch

diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c
index d9b0dc4..fdab423 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,