[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1369104146-30624-1-git-send-email-libo.chen@huawei.com>
Date: Tue, 21 May 2013 10:42:26 +0800
From: Libo Chen <libo.chen@...wei.com>
To: <akpm@...ux-foundation.org>
CC: <netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<davem@...emloft.net>, <lizefan@...wei.com>, <libo.chen@...wei.com>
Subject: [PATCH 09/19] drivers/net/ethernet: add missing platform_driver owner
set the owner of platform_driver, to ensure that the
caller of driver holds a module refernece
Signed-off-by: Libo Chen <libo.chen@...wei.com>
---
drivers/net/ethernet/dnet.c | 3 ++-
drivers/net/ethernet/korina.c | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/dnet.c b/drivers/net/ethernet/dnet.c
index f3d60eb..63c26ad 100644
--- a/drivers/net/ethernet/dnet.c
+++ b/drivers/net/ethernet/dnet.c
@@ -970,7 +970,8 @@ static struct platform_driver dnet_driver = {
.probe = dnet_probe,
.remove = dnet_remove,
.driver = {
- .name = "dnet",
+ .name = "dnet",
+ .owner = THIS_MODULE,
},
};
diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/korina.c
index 5409fe8..c41bcf6 100644
--- a/drivers/net/ethernet/korina.c
+++ b/drivers/net/ethernet/korina.c
@@ -1223,6 +1223,7 @@ static int korina_remove(struct platform_device *pdev)
static struct platform_driver korina_driver = {
.driver.name = "korina",
+ .driver.owner = THIS_MODULE,
.probe = korina_probe,
.remove = korina_remove,
};
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists