misc: Drop owner assignment from i2c_driver
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 10 Jul 2015 06:23:17 +0000 (15:23 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jul 2015 17:30:48 +0000 (10:30 -0700)
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ad525x_dpot-i2c.c
drivers/misc/apds990x.c
drivers/misc/bh1770glc.c
drivers/misc/bmp085-i2c.c
drivers/misc/eeprom/at24.c
drivers/misc/isl29003.c
drivers/misc/lis3lv02d/lis3lv02d_i2c.c
drivers/misc/ti-st/st_kim.c
drivers/misc/tsl2550.c

index 705b881e186d536ccb2bc97c392d108b3ecf765c..d11187d36ddd59b2d8ec6c8caf53dbc54d1fa928 100644 (file)
@@ -106,7 +106,6 @@ MODULE_DEVICE_TABLE(i2c, ad_dpot_id);
 static struct i2c_driver ad_dpot_i2c_driver = {
        .driver = {
                .name   = "ad_dpot",
-               .owner  = THIS_MODULE,
        },
        .probe          = ad_dpot_i2c_probe,
        .remove         = ad_dpot_i2c_remove,
index 3739ffa9cdf132e28098ad088b620c655c624dce..a3e789b85cc82e441530981736ba227b0226bcf7 100644 (file)
@@ -1275,7 +1275,6 @@ static const struct dev_pm_ops apds990x_pm_ops = {
 static struct i2c_driver apds990x_driver = {
        .driver  = {
                .name   = "apds990x",
-               .owner  = THIS_MODULE,
                .pm     = &apds990x_pm_ops,
        },
        .probe    = apds990x_probe,
index b756381b825071f09bfbf73aa1de57bf560d128c..753d7ecdadaa78a27df6c47c54a0bd0265192ac4 100644 (file)
@@ -1396,7 +1396,6 @@ static const struct dev_pm_ops bh1770_pm_ops = {
 static struct i2c_driver bh1770_driver = {
        .driver  = {
                .name   = "bh1770glc",
-               .owner  = THIS_MODULE,
                .pm     = &bh1770_pm_ops,
        },
        .probe    = bh1770_probe,
index a7c16295b8161f30ea2578c29ce02084554d2097..f35c218aaa1a80bb77bb322e6707f6af9bb97aaa 100644 (file)
@@ -66,7 +66,6 @@ MODULE_DEVICE_TABLE(i2c, bmp085_id);
 
 static struct i2c_driver bmp085_i2c_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = BMP085_NAME,
        },
        .id_table       = bmp085_id,
index 2d3db81be0990a1b88109aa7614f74f201930204..8c157229ac82c0f8113aa5d4b1e2e768a3d0ec95 100644 (file)
@@ -689,7 +689,6 @@ static int at24_remove(struct i2c_client *client)
 static struct i2c_driver at24_driver = {
        .driver = {
                .name = "at24",
-               .owner = THIS_MODULE,
        },
        .probe = at24_probe,
        .remove = at24_remove,
index 12c30b486b27c01ab8a741cbb743cbb8dbd58cbc..976df001363355c8f396408ec297433eadffd13a 100644 (file)
@@ -465,7 +465,6 @@ MODULE_DEVICE_TABLE(i2c, isl29003_id);
 static struct i2c_driver isl29003_driver = {
        .driver = {
                .name   = ISL29003_DRV_NAME,
-               .owner  = THIS_MODULE,
                .pm     = ISL29003_PM_OPS,
        },
        .probe  = isl29003_probe,
index e3e7f1dc27ba5df5daf8ad647953c10d92a69caa..0c3bb7e3ee80d45b4a122c4f4ad05fc1b9ff1ad3 100644 (file)
@@ -274,7 +274,6 @@ static const struct dev_pm_ops lis3_pm_ops = {
 static struct i2c_driver lis3lv02d_i2c_driver = {
        .driver  = {
                .name   = DRV_NAME,
-               .owner  = THIS_MODULE,
                .pm     = &lis3_pm_ops,
                .of_match_table = of_match_ptr(lis3lv02d_i2c_dt_ids),
        },
index 5027b8ffae4378e0aeda58513f993778bb34c30c..c84093e639e0ad8785a0d66e683800d2a6b4c608 100644 (file)
@@ -939,7 +939,6 @@ static struct platform_driver kim_platform_driver = {
        .resume = kim_resume,
        .driver = {
                .name = "kim",
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(kim_of_match),
        },
 };
index b00335652e52ac45087a65510f0c82a799920879..87a13374fdc0daac33fc84f6dc0b69740df7d076 100644 (file)
@@ -446,7 +446,6 @@ MODULE_DEVICE_TABLE(i2c, tsl2550_id);
 static struct i2c_driver tsl2550_driver = {
        .driver = {
                .name   = TSL2550_DRV_NAME,
-               .owner  = THIS_MODULE,
                .pm     = TSL2550_PM_OPS,
        },
        .probe  = tsl2550_probe,