leds: Drop owner assignment from i2c_driver
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 10 Jul 2015 06:00:52 +0000 (15:00 +0900)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Fri, 28 Aug 2015 12:06:02 +0000 (14:06 +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: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-lm3530.c
drivers/leds/leds-lm355x.c
drivers/leds/leds-lm3642.c
drivers/leds/leds-pca955x.c
drivers/leds/leds-pca963x.c
drivers/leds/leds-tca6507.c

index 91325de3cd3305ad589820ff07bf44cd99e36a4a..b38430cb10ad0a8de7082745732ddf8d49ed6796 100644 (file)
@@ -492,7 +492,6 @@ static struct i2c_driver lm3530_i2c_driver = {
        .id_table = lm3530_id,
        .driver = {
                .name = LM3530_NAME,
-               .owner = THIS_MODULE,
        },
 };
 
index f5112cb2d9915359957b2b90f432dee11918778b..48872997d6b4b35391affa52d07496082fb261f7 100644 (file)
@@ -555,7 +555,6 @@ MODULE_DEVICE_TABLE(i2c, lm355x_id);
 static struct i2c_driver lm355x_i2c_driver = {
        .driver = {
                   .name = LM355x_NAME,
-                  .owner = THIS_MODULE,
                   .pm = NULL,
                   },
        .probe = lm355x_probe,
index d3dec0132769dd1d2e648a1bb69d5a78029a1461..02ebe342f5af219ae4bd576a78794adc5d6fc88f 100644 (file)
@@ -446,7 +446,6 @@ MODULE_DEVICE_TABLE(i2c, lm3642_id);
 static struct i2c_driver lm3642_i2c_driver = {
        .driver = {
                   .name = LM3642_NAME,
-                  .owner = THIS_MODULE,
                   .pm = NULL,
                   },
        .probe = lm3642_probe,
index c3a08b60535bc31048d1246c1d5ef01dd5c12c6b..b775e1efecd3b6711acd61847652caf2352f194c 100644 (file)
@@ -379,7 +379,6 @@ static int pca955x_remove(struct i2c_client *client)
 static struct i2c_driver pca955x_driver = {
        .driver = {
                .name   = "leds-pca955x",
-               .owner  = THIS_MODULE,
        },
        .probe  = pca955x_probe,
        .remove = pca955x_remove,
index bee3e1ab27fd92fd7b71ab0a34812cd80ac5c8d0..3f63a1bfdc4f1a65d6113061f8aec0317b8e9b75 100644 (file)
@@ -458,7 +458,6 @@ static int pca963x_remove(struct i2c_client *client)
 static struct i2c_driver pca963x_driver = {
        .driver = {
                .name   = "leds-pca963x",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(of_pca963x_match),
        },
        .probe  = pca963x_probe,
index 20fa8e77f1863c5aa9bbe78a5eb028d6c32cc49c..c1f91098178154efde8612399660edd7bbab493e 100644 (file)
@@ -830,7 +830,6 @@ static int tca6507_remove(struct i2c_client *client)
 static struct i2c_driver tca6507_driver = {
        .driver   = {
                .name    = "leds-tca6507",
-               .owner   = THIS_MODULE,
                .of_match_table = of_match_ptr(of_tca6507_leds_match),
        },
        .probe    = tca6507_probe,