netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 18/19] drivers/net/ethernet/marvell: add missing platform_driver owne
@ 2013-05-21  2:42 Libo Chen
  2013-05-21 13:11 ` Sergei Shtylyov
  0 siblings, 1 reply; 3+ messages in thread
From: Libo Chen @ 2013-05-21  2:42 UTC (permalink / raw)
  To: thomas.petazzoni; +Cc: davem, netdev, linux-kernel, lizefan, libo.chen

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

Signed-off-by: Libo Chen <libo.chen@huawei.com>
---
 drivers/net/ethernet/marvell/mvneta.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index c966785..be35a3e 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -2820,6 +2820,7 @@ static struct platform_driver mvneta_driver = {
 	.remove = mvneta_remove,
 	.driver = {
 		.name = MVNETA_DRIVER_NAME,
+		.owner	= THIS_MODULE,
 		.of_match_table = mvneta_match,
 	},
 };
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-22  1:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-21  2:42 [PATCH 18/19] drivers/net/ethernet/marvell: add missing platform_driver owne Libo Chen
2013-05-21 13:11 ` Sergei Shtylyov
2013-05-22  1:06   ` Libo Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).