Skip to contentSkip to conversation

drivers/usb/host: add missing platform_driver owner

PATCH In review Libo Chen 2 participants 2 messages May 21, 2013

Subsystems (6)
lore
Share & tools
lore

Libo Chen

author
#0 lore raw

PATCH 2/19 drivers/usb/host: add missing platform_driver owner

set the owner of platform_driver, to ensure that the caller of driver holds a module refernece

---
 drivers/usb/host/ehci-atmel.c   |    1 +
 drivers/usb/host/ehci-msm.c     |    1 +
 drivers/usb/host/ehci-mv.c      |    1 +
 drivers/usb/host/ehci-mxc.c     |    1 +
 drivers/usb/host/ehci-omap.c    |    1 +
 drivers/usb/host/ehci-spear.c   |    1 +
 drivers/usb/host/isp1760-if.c   |    1 +
 drivers/usb/host/oxu210hp-hcd.c |    1 +
 drivers/usb/host/xhci-plat.c    |    1 +
 9 files changed, 9 insertions(+), 0 deletions(-)
drivers/usb/host/ehci-atmel.c +1 -0
index 6642009..4fbb59b 100644
@@ -182,6 +182,7 @@ static struct platform_driver ehci_atmel_driver = {
 	.shutdown	= usb_hcd_platform_shutdown,
 	.driver		= {
 		.name	= "atmel-ehci",
+		.owner	= THIS_MODULE,
 		.of_match_table	= of_match_ptr(atmel_ehci_dt_ids),
 	},
 };
drivers/usb/host/ehci-msm.c +1 -0
index 0f717dc..03e94d7 100644
@@ -191,6 +191,7 @@ static struct platform_driver ehci_msm_driver = {
 	.remove	= ehci_msm_remove,
 	.driver = {
 		   .name = "msm_hsusb_host",
+		   .owner = THIS_MODULE,
 		   .pm = &ehci_msm_dev_pm_ops,
 	},
 };
drivers/usb/host/ehci-mv.c +1 -0
index 4020629..ba12653 100644
@@ -335,6 +335,7 @@ static struct platform_driver ehci_mv_driver = {
 	.shutdown = mv_ehci_shutdown,
 	.driver = {
 		   .name = "mv-ehci",
+		   .owner = THIS_MODULE,
 		   .bus = &platform_bus_type,
 		   },
 	.id_table = ehci_id_table,
drivers/usb/host/ehci-mxc.c +1 -0
index c369767..e9c9651 100644
@@ -214,6 +214,7 @@ static struct platform_driver ehci_mxc_driver = {
 	.shutdown = ehci_mxc_drv_shutdown,
 	.driver = {
 		   .name = "mxc-ehci",
+		   .owner	= THIS_MODULE,
 	},
 };
 
drivers/usb/host/ehci-omap.c +1 -0
index 3d1491b..f630e62 100644
@@ -294,6 +294,7 @@ static struct platform_driver ehci_hcd_omap_driver = {
 	/*.resume		= ehci_hcd_omap_resume, */
 	.driver = {
 		.name		= hcd_name,
+		.owner	= THIS_MODULE,
 		.of_match_table = of_match_ptr(omap_ehci_dt_ids),
 	}
 };
drivers/usb/host/ehci-spear.c +1 -0
index 61ecfb3..2df73be 100644
@@ -172,6 +172,7 @@ static struct platform_driver spear_ehci_hcd_driver = {
 	.shutdown	= usb_hcd_platform_shutdown,
 	.driver		= {
 		.name = "spear-ehci",
+		.owner	= THIS_MODULE,
 		.bus = &platform_bus_type,
 		.pm = &ehci_spear_pm_ops,
 		.of_match_table = of_match_ptr(spear_ehci_id_table),
drivers/usb/host/isp1760-if.c +1 -0
index bbb791b..9c572da 100644
@@ -435,6 +435,7 @@ static struct platform_driver isp1760_plat_driver = {
 	.remove	= isp1760_plat_remove,
 	.driver	= {
 		.name	= "isp1760",
+		.owner	= THIS_MODULE,
 	},
 };
 
drivers/usb/host/oxu210hp-hcd.c +1 -0
index 4f0f033..c5e1d1f 100644
@@ -3947,6 +3947,7 @@ static struct platform_driver oxu_driver = {
 	.resume		= oxu_drv_resume,
 	.driver = {
 		.name = "oxu210hp-hcd",
+		.owner	= THIS_MODULE,
 		.bus = &platform_bus_type
 	}
 };
drivers/usb/host/xhci-plat.c +1 -0
index df90fe5..34a6067 100644
@@ -190,6 +190,7 @@ static struct platform_driver usb_xhci_driver = {
 	.remove	= xhci_plat_remove,
 	.driver	= {
 		.name = "xhci-hcd",
+		.owner	= THIS_MODULE,
 	},
 };
 MODULE_ALIAS("platform:xhci-hcd");
Signature · 1 line
1.7.1