提交 6d3f5f2d 编写于 作者: W Wolfram Sang

usb: gadget: udc: drop owner assignment from platform_drivers

A platform_driver does not need to set an owner, it will be populated by the
driver core.
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 e55a0137
......@@ -1972,7 +1972,6 @@ static struct platform_driver at91_udc_driver = {
.resume = at91udc_resume,
.driver = {
.name = (char *) driver_name,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(at91_udc_dt_ids),
},
};
......
......@@ -2120,7 +2120,6 @@ static struct platform_driver udc_driver = {
.remove = __exit_p(usba_udc_remove),
.driver = {
.name = "atmel_usba_udc",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(atmel_udc_dt_ids),
},
};
......
......@@ -2425,7 +2425,6 @@ static struct platform_driver bcm63xx_udc_driver = {
.remove = bcm63xx_udc_remove,
.driver = {
.name = DRV_MODULE_NAME,
.owner = THIS_MODULE,
},
};
module_platform_driver(bcm63xx_udc_driver);
......
......@@ -1042,7 +1042,6 @@ static struct platform_driver dummy_udc_driver = {
.resume = dummy_udc_resume,
.driver = {
.name = (char *) gadget_name,
.owner = THIS_MODULE,
},
};
......@@ -2612,7 +2611,6 @@ static struct platform_driver dummy_hcd_driver = {
.resume = dummy_hcd_resume,
.driver = {
.name = (char *) driver_name,
.owner = THIS_MODULE,
},
};
......
......@@ -1203,7 +1203,6 @@ static int fotg210_udc_probe(struct platform_device *pdev)
static struct platform_driver fotg210_driver = {
.driver = {
.name = (char *)udc_name,
.owner = THIS_MODULE,
},
.probe = fotg210_udc_probe,
.remove = fotg210_udc_remove,
......
......@@ -2709,7 +2709,6 @@ MODULE_DEVICE_TABLE(of, qe_udc_match);
static struct platform_driver udc_driver = {
.driver = {
.name = driver_name,
.owner = THIS_MODULE,
.of_match_table = qe_udc_match,
},
.probe = qe_udc_probe,
......
......@@ -2669,7 +2669,6 @@ static struct platform_driver udc_driver = {
.resume = fsl_udc_resume,
.driver = {
.name = driver_name,
.owner = THIS_MODULE,
/* udc suspend/resume called from OTG driver */
.suspend = fsl_udc_otg_suspend,
.resume = fsl_udc_otg_resume,
......
......@@ -1496,7 +1496,6 @@ static struct platform_driver fusb300_driver = {
.remove = __exit_p(fusb300_remove),
.driver = {
.name = (char *) udc_name,
.owner = THIS_MODULE,
},
};
......
......@@ -2262,7 +2262,6 @@ MODULE_DEVICE_TABLE(of, gr_match);
static struct platform_driver gr_driver = {
.driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = gr_match,
},
.probe = gr_probe,
......
......@@ -3410,7 +3410,6 @@ static struct platform_driver lpc32xx_udc_driver = {
.resume = lpc32xx_udc_resume,
.driver = {
.name = (char *) driver_name,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(lpc32xx_udc_of_match),
},
};
......
......@@ -1699,7 +1699,6 @@ static struct platform_driver m66592_driver = {
.remove = __exit_p(m66592_remove),
.driver = {
.name = (char *) udc_name,
.owner = THIS_MODULE,
},
};
......
......@@ -2053,7 +2053,6 @@ static struct platform_driver mv_u3d_driver = {
.remove = mv_u3d_remove,
.shutdown = mv_u3d_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = "mv-u3d",
.pm = &mv_u3d_pm_ops,
},
......
......@@ -2403,7 +2403,6 @@ static struct platform_driver udc_driver = {
.remove = mv_udc_remove,
.shutdown = mv_udc_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = "mv-udc",
#ifdef CONFIG_PM
.pm = &mv_udc_pm_ops,
......
......@@ -2674,7 +2674,6 @@ static struct platform_driver net2272_plat_driver = {
.remove = net2272_plat_remove,
.driver = {
.name = driver_name,
.owner = THIS_MODULE,
},
/* FIXME .suspend, .resume */
};
......
......@@ -3026,7 +3026,6 @@ static struct platform_driver udc_driver = {
.suspend = omap_udc_suspend,
.resume = omap_udc_resume,
.driver = {
.owner = THIS_MODULE,
.name = (char *) driver_name,
},
};
......
......@@ -2271,7 +2271,6 @@ static struct platform_driver udc_driver = {
.suspend = pxa25x_udc_suspend,
.resume = pxa25x_udc_resume,
.driver = {
.owner = THIS_MODULE,
.name = "pxa25x-udc",
},
};
......
......@@ -2614,7 +2614,6 @@ MODULE_ALIAS("platform:pxa27x-udc");
static struct platform_driver udc_driver = {
.driver = {
.name = "pxa27x-udc",
.owner = THIS_MODULE,
},
.probe = pxa_udc_probe,
.remove = pxa_udc_remove,
......
......@@ -1354,7 +1354,6 @@ static int s3c_hsudc_probe(struct platform_device *pdev)
static struct platform_driver s3c_hsudc_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "s3c-hsudc",
},
.probe = s3c_hsudc_probe,
......
......@@ -1997,7 +1997,6 @@ MODULE_DEVICE_TABLE(platform, s3c_udc_ids);
static struct platform_driver udc_driver_24x0 = {
.driver = {
.name = "s3c24x0-usbgadget",
.owner = THIS_MODULE,
},
.probe = s3c2410_udc_probe,
.remove = s3c2410_udc_remove,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册