i2c: Drop owner assignment from i2c_driver
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 10 Jul 2015 05:52:31 +0000 (14:52 +0900)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 10 Aug 2015 06:37:35 +0000 (08:37 +0200)
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: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-slave-eeprom.c
drivers/i2c/muxes/i2c-mux-pca9541.c
drivers/i2c/muxes/i2c-mux-pca954x.c

index 1da44961477953038e78409169f80a3f4884f89a..b2039f94c9d89e3c35b0f50f14c3ed4fe30ad50f 100644 (file)
@@ -157,7 +157,6 @@ MODULE_DEVICE_TABLE(i2c, i2c_slave_eeprom_id);
 static struct i2c_driver i2c_slave_eeprom_driver = {
        .driver = {
                .name = "i2c-slave-eeprom",
-               .owner = THIS_MODULE,
        },
        .probe = i2c_slave_eeprom_probe,
        .remove = i2c_slave_eeprom_remove,
index 0c8d4d2cbdaf42a5844a19b13acfd652a3b2f3a9..d0ba424adebc80a3a44a05879f9bb131f5362bfd 100644 (file)
@@ -386,7 +386,6 @@ static int pca9541_remove(struct i2c_client *client)
 static struct i2c_driver pca9541_driver = {
        .driver = {
                   .name = "pca9541",
-                  .owner = THIS_MODULE,
                   },
        .probe = pca9541_probe,
        .remove = pca9541_remove,
index ea4aa9dfcea9674f412cdfae21d8735f2885d650..acfcef3d4068549cd22ebebf5115f8642ad10438 100644 (file)
@@ -300,7 +300,6 @@ static struct i2c_driver pca954x_driver = {
        .driver         = {
                .name   = "pca954x",
                .pm     = &pca954x_pm,
-               .owner  = THIS_MODULE,
        },
        .probe          = pca954x_probe,
        .remove         = pca954x_remove,