Skip to contentSkip to conversation

drivers/usb/dwc3: add missing platform_driver owner

PATCH In review Libo Chen 1 participant 1 message May 21, 2013

Subsystems (4)
lore
Share & tools
lore

Libo Chen

author
#0 lore raw

PATCH 4/19 drivers/usb/dwc3: add missing platform_driver owner

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

---
 drivers/usb/dwc3/core.c        |    1 +
 drivers/usb/dwc3/dwc3-exynos.c |    1 +
 drivers/usb/dwc3/dwc3-omap.c   |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)
drivers/usb/dwc3/core.c +1 -0
index c35d49d..570c2df 100644
@@ -766,6 +766,7 @@ static struct platform_driver dwc3_driver = {
 	.remove		= dwc3_remove,
 	.driver		= {
 		.name	= "dwc3",
+		.owner	= THIS_MODULE,
 		.of_match_table	= of_match_ptr(of_dwc3_match),
 		.pm	= DWC3_PM_OPS,
 	},
drivers/usb/dwc3/dwc3-exynos.c +1 -0
index a8afe6e..831aa81 100644
@@ -219,6 +219,7 @@ static struct platform_driver dwc3_exynos_driver = {
 	.remove		= dwc3_exynos_remove,
 	.driver		= {
 		.name	= "exynos-dwc3",
+		.owner	= THIS_MODULE,
 		.of_match_table = of_match_ptr(exynos_dwc3_match),
 		.pm	= DEV_PM_OPS,
 	},
drivers/usb/dwc3/dwc3-omap.c +1 -0
index 34638b9..3aaf87f 100644
@@ -468,6 +468,7 @@ static struct platform_driver dwc3_omap_driver = {
 	.remove		= dwc3_omap_remove,
 	.driver		= {
 		.name	= "omap-dwc3",
+		.owner	= THIS_MODULE,
 		.of_match_table	= of_dwc3_match,
 		.pm	= DEV_PM_OPS,
 	},
Signature · 1 line
1.7.1