[PATCH 2/2] i2c: i2c-xiic: Remove .owner field for driver

From: Michal Simek
Date: Wed Aug 13 2014 - 07:57:05 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/i2c/busses/i2c-xiic.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c
index ade9223912d3..e60e67a5fac6 100644
--- a/drivers/i2c/busses/i2c-xiic.c
+++ b/drivers/i2c/busses/i2c-xiic.c
@@ -771,7 +771,6 @@ static struct platform_driver xiic_i2c_driver = {
.probe = xiic_i2c_probe,
.remove = xiic_i2c_remove,
.driver = {
- .owner = THIS_MODULE,
.name = DRIVER_NAME,
.of_match_table = of_match_ptr(xiic_of_match),
},
--
1.8.2.3

Attachment: pgp7zySYGd7fT.pgp
Description: PGP signature