Skip to contentSkip to conversation

usb: fsl: add missing platform_driver owner

RFC PATCH New Libo Chen 1 participant 1 message May 10, 2013

Subsystems (2)
lore
Share & tools
lore

Libo Chen

author
#0 lore raw

RFC PATCH 1/1 usb: fsl: add missing platform_driver owner

From: Libo Chen <[email protected]>

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

---
 drivers/usb/host/ehci-fsl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/host/ehci-fsl.c +1 -0
index 3be3df2..bd831ec 100644
@@ -732,6 +732,7 @@ static struct platform_driver ehci_fsl_driver = {
 	.shutdown = usb_hcd_platform_shutdown,
 	.driver = {
 		.name = "fsl-ehci",
+		.owner	= THIS_MODULE,
 		.pm = EHCI_FSL_PM_OPS,
 	},
 };
Signature · 1 line
1.8.1.2