Skip to contentSkip to conversation

drivers/net/ethernet/nxp: add missing platform_driver owner

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

Subsystems (3)
lore
Share & tools
lore

Libo Chen

author
#0 lore raw

PATCH 17/19 drivers/net/ethernet/nxp: add missing platform_driver owner

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

---
 drivers/net/ethernet/nxp/lpc_eth.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/ethernet/nxp/lpc_eth.c +1 -0
index 55a5548..1f72325 100644
@@ -1600,6 +1600,7 @@ static struct platform_driver lpc_eth_driver = {
 #endif
 	.driver		= {
 		.name	= MODNAME,
+		.owner	= THIS_MODULE,
 		.of_match_table = of_match_ptr(lpc_eth_match),
 	},
 };
Signature · 1 line
1.7.1