[PATCH] block: systemace: Remove .owner field for driver

From: Michal Simek
Date: Wed Aug 13 2014 - 07:59:58 EST


There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@xxxxxxxxxx>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Michal Simek <michal.simek@xxxxxxxxxx>
---

drivers/block/xsysace.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/block/xsysace.c b/drivers/block/xsysace.c
index ab3ea62e5dfc..c4328d9d9981 100644
--- a/drivers/block/xsysace.c
+++ b/drivers/block/xsysace.c
@@ -1203,7 +1203,6 @@ static struct platform_driver ace_platform_driver = {
.probe = ace_probe,
.remove = ace_remove,
.driver = {
- .owner = THIS_MODULE,
.name = "xsysace",
.of_match_table = ace_of_match,
},
--
1.8.2.3

Attachment: pgpIqmdBKE9Xl.pgp
Description: PGP signature