gpio: Drop owner assignment from i2c_driver
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 19 Nov 2015 03:57:11 +0000 (12:57 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 30 Nov 2015 08:31:00 +0000 (09:31 +0100)
i2c_driver does not need to set an owner because i2c_register_driver()
will set it.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-adnp.c
drivers/gpio/gpio-max7300.c
drivers/gpio/gpio-max732x.c
drivers/gpio/gpio-mc9s08dz60.c
drivers/gpio/gpio-pcf857x.c
drivers/gpio/gpio-sx150x.c

index b34a62a5a7e12823c99d39401224182a62a216d4..b8a1ac133390cb97b3b9979f60c4914268d2dac5 100644 (file)
@@ -548,7 +548,6 @@ MODULE_DEVICE_TABLE(of, adnp_of_match);
 static struct i2c_driver adnp_i2c_driver = {
        .driver = {
                .name = "gpio-adnp",
-               .owner = THIS_MODULE,
                .of_match_table = adnp_of_match,
        },
        .probe = adnp_i2c_probe,
index 0cc2c279ab5cab21770ef9c863db030f74c06fb9..1ae9ba851c9ac08f6a737fc81d0c24f34b05214e 100644 (file)
@@ -65,7 +65,6 @@ MODULE_DEVICE_TABLE(i2c, max7300_id);
 static struct i2c_driver max7300_driver = {
        .driver = {
                .name = "max7300",
-               .owner = THIS_MODULE,
        },
        .probe = max7300_probe,
        .remove = max7300_remove,
index c1e7b55644b0014dc08658daceba8ff3ce77b7e0..a1094984b666c068fd80f4aa2e038549f7b36d25 100644 (file)
@@ -749,7 +749,6 @@ static int max732x_remove(struct i2c_client *client)
 static struct i2c_driver max732x_driver = {
        .driver = {
                .name           = "max732x",
-               .owner          = THIS_MODULE,
                .of_match_table = of_match_ptr(max732x_of_table),
        },
        .probe          = max732x_probe,
index defa38f958fb23a05b8b1d054dc60cc2bccf08ee..45f1760183787603a450ef9ed491e3683c0bfc22 100644 (file)
@@ -131,7 +131,6 @@ MODULE_DEVICE_TABLE(i2c, mc9s08dz60_id);
 
 static struct i2c_driver mc9s08dz60_i2c_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = "mc9s08dz60",
        },
        .probe = mc9s08dz60_probe,
index c7552106a80cd1035ce51993c67ead8db9a34501..407ca5e1aafa47253293b3f873ea5fac268b5c01 100644 (file)
@@ -447,7 +447,6 @@ static int pcf857x_remove(struct i2c_client *client)
 static struct i2c_driver pcf857x_driver = {
        .driver = {
                .name   = "pcf857x",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(pcf857x_of_table),
        },
        .probe  = pcf857x_probe,
index c0145159a12785670664d1dc2370fcaabc14529e..cf12d8e3ce3e6454c34f9207503229557ab1bd4d 100644 (file)
@@ -680,7 +680,6 @@ static int sx150x_remove(struct i2c_client *client)
 static struct i2c_driver sx150x_driver = {
        .driver = {
                .name = "sx150x",
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(sx150x_of_match),
        },
        .probe    = sx150x_probe,