Input: drop owner assignment from i2c_driver
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 17 Jul 2015 23:44:05 +0000 (16:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 17 Jul 2015 23:57:00 +0000 (16:57 -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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
42 files changed:
drivers/input/keyboard/adp5589-keys.c
drivers/input/keyboard/cap11xx.c
drivers/input/keyboard/lm8333.c
drivers/input/keyboard/mcs_touchkey.c
drivers/input/keyboard/mpr121_touchkey.c
drivers/input/keyboard/qt1070.c
drivers/input/keyboard/qt2160.c
drivers/input/keyboard/tca8418_keypad.c
drivers/input/misc/adxl34x-i2c.c
drivers/input/misc/bma150.c
drivers/input/misc/cma3000_d0x_i2c.c
drivers/input/misc/drv260x.c
drivers/input/misc/drv2665.c
drivers/input/misc/drv2667.c
drivers/input/misc/gp2ap002a00f.c
drivers/input/misc/kxtj9.c
drivers/input/misc/mpu3050.c
drivers/input/misc/pcf8574_keypad.c
drivers/input/mouse/cyapa.c
drivers/input/mouse/elan_i2c_core.c
drivers/input/mouse/synaptics_i2c.c
drivers/input/touchscreen/ad7879-i2c.c
drivers/input/touchscreen/ar1021_i2c.c
drivers/input/touchscreen/atmel_mxt_ts.c
drivers/input/touchscreen/auo-pixcir-ts.c
drivers/input/touchscreen/bu21013_ts.c
drivers/input/touchscreen/chipone_icn8318.c
drivers/input/touchscreen/cy8ctmg110_ts.c
drivers/input/touchscreen/cyttsp4_i2c.c
drivers/input/touchscreen/cyttsp_i2c.c
drivers/input/touchscreen/edt-ft5x06.c
drivers/input/touchscreen/egalax_ts.c
drivers/input/touchscreen/elants_i2c.c
drivers/input/touchscreen/goodix.c
drivers/input/touchscreen/ili210x.c
drivers/input/touchscreen/max11801_ts.c
drivers/input/touchscreen/mms114.c
drivers/input/touchscreen/pixcir_i2c_ts.c
drivers/input/touchscreen/st1232.c
drivers/input/touchscreen/tsc2007.c
drivers/input/touchscreen/wacom_i2c.c
drivers/input/touchscreen/zforce_ts.c

index 6ed83cf8b74e9b2dff7fc6cc90dc7e018e536e23..4d446d5085aad9b110ca7ecb05a3167f859ef12c 100644 (file)
@@ -1097,7 +1097,6 @@ MODULE_DEVICE_TABLE(i2c, adp5589_id);
 static struct i2c_driver adp5589_driver = {
        .driver = {
                .name = KBUILD_MODNAME,
-               .owner = THIS_MODULE,
                .pm = &adp5589_dev_pm_ops,
        },
        .probe = adp5589_probe,
index f07461a64d85cba241093ab7b85b5b9504a847fa..b58fd9d72d9278738a2ac26b2fc2cdafc3fa968d 100644 (file)
@@ -361,7 +361,6 @@ MODULE_DEVICE_TABLE(i2c, cap11xx_i2c_ids);
 static struct i2c_driver cap11xx_i2c_driver = {
        .driver = {
                .name   = "cap11xx",
-               .owner  = THIS_MODULE,
                .of_match_table = cap11xx_dt_ids,
        },
        .id_table       = cap11xx_i2c_ids,
index 0ad422b8a2607c3cae027ca7c54b3cf0331094c3..c717e8f3c964bdc26cbd67cccdc81024ad9e0c3b 100644 (file)
@@ -223,7 +223,6 @@ MODULE_DEVICE_TABLE(i2c, lm8333_id);
 static struct i2c_driver lm8333_driver = {
        .driver = {
                .name           = "lm8333",
-               .owner          = THIS_MODULE,
        },
        .probe          = lm8333_probe,
        .remove         = lm8333_remove,
index 375b05ca8e2a58ed555b3b9e68c503e58d85c506..31090d71a685d18fe7bc0093b1927f304e3de7eb 100644 (file)
@@ -265,7 +265,6 @@ MODULE_DEVICE_TABLE(i2c, mcs_touchkey_id);
 static struct i2c_driver mcs_touchkey_driver = {
        .driver = {
                .name   = "mcs_touchkey",
-               .owner  = THIS_MODULE,
                .pm     = &mcs_touchkey_pm_ops,
        },
        .probe          = mcs_touchkey_probe,
index 3aa2ec45bcab42faf93189af51c19b696af10e21..0fd612dd76edec57f8cf18d5ea6df87f06de56cb 100644 (file)
@@ -305,7 +305,6 @@ MODULE_DEVICE_TABLE(i2c, mpr121_id);
 static struct i2c_driver mpr_touchkey_driver = {
        .driver = {
                .name   = "mpr121",
-               .owner  = THIS_MODULE,
                .pm     = &mpr121_touchkey_pm_ops,
        },
        .id_table       = mpr121_id,
index 52cd6e88acd7090072b7a5a2096a07d3ebc1b8e4..5a5778729e3706e3b38016f27ee26bf9e3f7bf9f 100644 (file)
@@ -277,7 +277,6 @@ MODULE_DEVICE_TABLE(i2c, qt1070_id);
 static struct i2c_driver qt1070_driver = {
        .driver = {
                .name   = "qt1070",
-               .owner  = THIS_MODULE,
                .pm     = &qt1070_pm_ops,
        },
        .id_table       = qt1070_id,
index 819b22897c1371050a4064ba8bf81d6d7bfd1e3d..43b86482dda01b51c1d4ff38353756cd75bcfc5b 100644 (file)
@@ -497,7 +497,6 @@ MODULE_DEVICE_TABLE(i2c, qt2160_idtable);
 static struct i2c_driver qt2160_driver = {
        .driver = {
                .name   = "qt2160",
-               .owner  = THIS_MODULE,
        },
 
        .id_table       = qt2160_idtable,
index 4e491c1762cfe5e1ecd9bd562e8244237261aa07..9002298698fce303de6a61b0253c6b0a667b4818 100644 (file)
@@ -404,7 +404,6 @@ MODULE_ALIAS("i2c:tca8418");
 static struct i2c_driver tca8418_keypad_driver = {
        .driver = {
                .name   = TCA8418_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(tca8418_dt_ids),
        },
        .probe          = tca8418_keypad_probe,
index bdb5d03b296ec6db7efcce5781d859dafb7cf60d..a8b0a2eec344e863bd292251095a4e84f3a0b98b 100644 (file)
@@ -158,7 +158,6 @@ MODULE_DEVICE_TABLE(of, adxl34x_of_id);
 static struct i2c_driver adxl34x_driver = {
        .driver = {
                .name = "adxl34x",
-               .owner = THIS_MODULE,
                .pm = &adxl34x_i2c_pm,
                .of_match_table = of_match_ptr(adxl34x_of_id),
        },
index c2780493b0edbac2eaf20974174abfb53b9cba45..1d0e61d7c13188d2dbc4d9fe811ada66787ea67f 100644 (file)
@@ -653,7 +653,6 @@ MODULE_DEVICE_TABLE(i2c, bma150_id);
 
 static struct i2c_driver bma150_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = BMA150_DRIVER,
                .pm     = &bma150_pm,
        },
index 4fdef98ceb56f7027e1465e92aa0d1e8c10cf810..c7021916b64b7fcd7a029ad5ed170d0021af8ff5 100644 (file)
@@ -118,7 +118,6 @@ static struct i2c_driver cma3000_i2c_driver = {
        .id_table       = cma3000_i2c_id,
        .driver = {
                .name   = "cma3000_i2c_accl",
-               .owner  = THIS_MODULE,
 #ifdef CONFIG_PM
                .pm     = &cma3000_i2c_pm_ops,
 #endif
index 0e3af55d9e2578c92e8d3690fd2bde36c17eeaf0..e65496e6463d7e0d58882a0aba3e38fb09ef95dc 100644 (file)
@@ -720,7 +720,6 @@ static struct i2c_driver drv260x_driver = {
        .probe          = drv260x_probe,
        .driver         = {
                .name   = "drv260x-haptics",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(drv260x_of_match),
                .pm     = &drv260x_pm_ops,
        },
index e9501fdca5ef6895cda57d7049f5a9b961b6cae7..327a63c2f07d0a3a8bd33f80359f75fd47a30910 100644 (file)
@@ -309,7 +309,6 @@ static struct i2c_driver drv2665_driver = {
        .probe          = drv2665_probe,
        .driver         = {
                .name   = "drv2665-haptics",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(drv2665_of_match),
                .pm     = &drv2665_pm_ops,
        },
index a231342207f9c433d6f2d645f736a92b02c7ca1b..46a4be4e9dc3fa8c0f7a150e8d1e4c0ef3eed06e 100644 (file)
@@ -484,7 +484,6 @@ static struct i2c_driver drv2667_driver = {
        .probe          = drv2667_probe,
        .driver         = {
                .name   = "drv2667-haptics",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(drv2667_of_match),
                .pm     = &drv2667_pm_ops,
        },
index 0ac176d66a6f006c0bb76d0b4a442cae3ee36811..ba301af91b95a2e6ea94d7424efa92f62396d695 100644 (file)
@@ -271,7 +271,6 @@ static const struct i2c_device_id gp2a_i2c_id[] = {
 static struct i2c_driver gp2a_i2c_driver = {
        .driver = {
                .name   = GP2A_I2C_NAME,
-               .owner  = THIS_MODULE,
                .pm     = &gp2a_pm,
        },
        .probe          = gp2a_probe,
index 6e29349da537912d296d21d11fe37949febc3ac3..e058d711256a203c97f8018824cba877fbdc0f05 100644 (file)
@@ -658,7 +658,6 @@ MODULE_DEVICE_TABLE(i2c, kxtj9_id);
 static struct i2c_driver kxtj9_driver = {
        .driver = {
                .name   = NAME,
-               .owner  = THIS_MODULE,
                .pm     = &kxtj9_pm_ops,
        },
        .probe          = kxtj9_probe,
index 5e5051351c3a87f71b2d1b047149810c43f280b4..f088db31cfc7c2f82ce937c0f015a9976ca1eb5e 100644 (file)
@@ -466,7 +466,6 @@ MODULE_DEVICE_TABLE(of, mpu3050_of_match);
 static struct i2c_driver mpu3050_i2c_driver = {
        .driver = {
                .name   = "mpu3050",
-               .owner  = THIS_MODULE,
                .pm     = &mpu3050_pm,
                .of_match_table = mpu3050_of_match,
        },
index 97f711a7bd20dfb0b25726f0980e7246e9455768..4abdf1efb3e004e56860d06b375e266d0949cb27 100644 (file)
@@ -208,7 +208,6 @@ MODULE_DEVICE_TABLE(i2c, pcf8574_kp_id);
 static struct i2c_driver pcf8574_kp_driver = {
        .driver = {
                .name  = DRV_NAME,
-               .owner = THIS_MODULE,
 #ifdef CONFIG_PM
                .pm = &pcf8574_kp_pm_ops,
 #endif
index efe148474e7f6b4dcf758ac628bf2f081a18d6c4..dfbfd494bb1f4fd7c5722929935f8b0fcadcd3f1 100644 (file)
@@ -1382,7 +1382,6 @@ MODULE_DEVICE_TABLE(acpi, cyapa_acpi_id);
 static struct i2c_driver cyapa_driver = {
        .driver = {
                .name = "cyapa",
-               .owner = THIS_MODULE,
                .pm = &cyapa_pm_ops,
                .acpi_match_table = ACPI_PTR(cyapa_acpi_id),
        },
index 62641f2adaf74d2a3e5ba2473ac00b9a8984cb28..e7ef4ab1b37d1c270153b69feb07f33db40f290f 100644 (file)
@@ -1183,7 +1183,6 @@ MODULE_DEVICE_TABLE(of, elan_of_match);
 static struct i2c_driver elan_driver = {
        .driver = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .pm     = &elan_pm_ops,
                .acpi_match_table = ACPI_PTR(elan_acpi_id),
                .of_match_table = of_match_ptr(elan_of_match),
index ffceedcaf3c8c0d10752552d90405088582e5e2a..aa7c5da608005cfb471279b484bcc46f39fe3c82 100644 (file)
@@ -655,7 +655,6 @@ MODULE_DEVICE_TABLE(i2c, synaptics_i2c_id_table);
 static struct i2c_driver synaptics_i2c_driver = {
        .driver = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .pm     = &synaptics_i2c_pm,
        },
 
index dcf390771549ced9569834167ead24c6635ff88b..d66962c5b1c2caa71727eb51cd8931311cbe2bc7 100644 (file)
@@ -94,7 +94,6 @@ MODULE_DEVICE_TABLE(i2c, ad7879_id);
 static struct i2c_driver ad7879_i2c_driver = {
        .driver = {
                .name   = "ad7879",
-               .owner  = THIS_MODULE,
                .pm     = &ad7879_pm_ops,
        },
        .probe          = ad7879_i2c_probe,
index f0b954d46a259726d94766e0191f4523351c748a..71b5a634cf6d56509f49563ed7454af9f8ae1b88 100644 (file)
@@ -166,7 +166,6 @@ MODULE_DEVICE_TABLE(of, ar1021_i2c_of_match);
 static struct i2c_driver ar1021_i2c_driver = {
        .driver = {
                .name   = "ar1021_i2c",
-               .owner  = THIS_MODULE,
                .pm     = &ar1021_i2c_pm,
                .of_match_table = ar1021_i2c_of_match,
        },
index dfc7309e3d3898b88e5fa5add0451490a08f1a8c..8efe7a002f1e908f6bb2c797c37d5af8a01bb122 100644 (file)
@@ -2666,7 +2666,6 @@ MODULE_DEVICE_TABLE(i2c, mxt_id);
 static struct i2c_driver mxt_driver = {
        .driver = {
                .name   = "atmel_mxt_ts",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(mxt_of_match),
                .acpi_match_table = ACPI_PTR(mxt_acpi_id),
                .pm     = &mxt_pm_ops,
index 40e02dd5b2f94ad53c03c1e76f23b1cc06e5f1c6..38c06f754acd69abeb45ff3fbba766c9e01a09d6 100644 (file)
@@ -686,7 +686,6 @@ MODULE_DEVICE_TABLE(of, auo_pixcir_ts_dt_idtable);
 
 static struct i2c_driver auo_pixcir_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "auo_pixcir_ts",
                .pm     = &auo_pixcir_pm_ops,
                .of_match_table = of_match_ptr(auo_pixcir_ts_dt_idtable),
index b9b5ddad6658ac28367a80d103aaecc6f013fc25..931417eb4f5a2351c21fbfa3a311e448fbc26478 100644 (file)
@@ -716,7 +716,6 @@ MODULE_DEVICE_TABLE(i2c, bu21013_id);
 static struct i2c_driver bu21013_driver = {
        .driver = {
                .name   =       DRIVER_TP,
-               .owner  =       THIS_MODULE,
 #ifdef CONFIG_PM
                .pm     =       &bu21013_dev_pm_ops,
 #endif
index 32e9db0e04bfd01dde96a61cfb9a46905715b01e..22a6fead8cfb3a6036d69b76d4f4af4432baf742 100644 (file)
@@ -300,7 +300,6 @@ MODULE_DEVICE_TABLE(i2c, icn8318_i2c_id);
 
 static struct i2c_driver icn8318_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "chipone_icn8318",
                .pm     = &icn8318_pm_ops,
                .of_match_table = icn8318_of_match,
index f2119ee0e21be5c8c12bcfe0b4ab899afe2a6b26..cc1d1350074e317357b625604b3f1354ce8e3194 100644 (file)
@@ -347,7 +347,6 @@ MODULE_DEVICE_TABLE(i2c, cy8ctmg110_idtable);
 
 static struct i2c_driver cy8ctmg110_driver = {
        .driver         = {
-               .owner  = THIS_MODULE,
                .name   = CY8CTMG110_DRIVER_NAME,
                .pm     = &cy8ctmg110_pm,
        },
index 8e2012c79058eb389c58161f4339b5666dc9baf0..9a323dd915dea696b5749d77af8c05c5d7b3c093 100644 (file)
@@ -74,7 +74,6 @@ MODULE_DEVICE_TABLE(i2c, cyttsp4_i2c_id);
 static struct i2c_driver cyttsp4_i2c_driver = {
        .driver = {
                .name   = CYTTSP4_I2C_NAME,
-               .owner  = THIS_MODULE,
                .pm     = &cyttsp4_pm_ops,
        },
        .probe          = cyttsp4_i2c_probe,
index 63104a86a9bdfcc6bf069e2e0886cd01916491a1..519e2de2f8dfc6107303412cef6c25bf3a770bf2 100644 (file)
@@ -74,7 +74,6 @@ MODULE_DEVICE_TABLE(i2c, cyttsp_i2c_id);
 static struct i2c_driver cyttsp_i2c_driver = {
        .driver = {
                .name   = CY_I2C_NAME,
-               .owner  = THIS_MODULE,
                .pm     = &cyttsp_pm_ops,
        },
        .probe          = cyttsp_i2c_probe,
index 8f8f3199be394dfb5d19c0d64de76b9019e94eeb..48de1e8b3c93578cf4c1faf88c220c008a75569c 100644 (file)
@@ -1134,7 +1134,6 @@ MODULE_DEVICE_TABLE(of, edt_ft5x06_of_match);
 
 static struct i2c_driver edt_ft5x06_ts_driver = {
        .driver = {
-               .owner = THIS_MODULE,
                .name = "edt_ft5x06",
                .of_match_table = of_match_ptr(edt_ft5x06_of_match),
                .pm = &edt_ft5x06_ts_pm_ops,
index 4c56299284ef6612b731e60e42a76feb108395b6..7bce2d90ec742b523c03f6c66a97f52bfc53c6da 100644 (file)
@@ -268,7 +268,6 @@ static const struct of_device_id egalax_ts_dt_ids[] = {
 static struct i2c_driver egalax_ts_driver = {
        .driver = {
                .name   = "egalax_ts",
-               .owner  = THIS_MODULE,
                .pm     = &egalax_ts_pm_ops,
                .of_match_table = egalax_ts_dt_ids,
        },
index 0efd766a545bc677cce1fa2f753265dd06bfe8d9..7461376941373204ba43b28bcb3aebd78a939932 100644 (file)
@@ -1261,7 +1261,6 @@ static struct i2c_driver elants_i2c_driver = {
        .id_table = elants_i2c_id,
        .driver = {
                .name = DEVICE_NAME,
-               .owner = THIS_MODULE,
                .pm = &elants_i2c_pm_ops,
                .acpi_match_table = ACPI_PTR(elants_acpi_id),
                .of_match_table = of_match_ptr(elants_of_match),
index b4d12e29abff72008125c2406b3808cf174e0f71..ccd9dca61195f98bd7f84baa0f0ddeef628229da 100644 (file)
@@ -412,7 +412,6 @@ static struct i2c_driver goodix_ts_driver = {
        .id_table = goodix_ts_id,
        .driver = {
                .name = "Goodix-TS",
-               .owner = THIS_MODULE,
                .acpi_match_table = ACPI_PTR(goodix_acpi_match),
                .of_match_table = of_match_ptr(goodix_of_match),
        },
index da6dc819c846edf96b5d95762cc1cafc65d6fd29..cf0dc2f0b1bed53b4a6e1e5d8a2762ac00e28a59 100644 (file)
@@ -343,7 +343,6 @@ MODULE_DEVICE_TABLE(i2c, ili210x_i2c_id);
 static struct i2c_driver ili210x_ts_driver = {
        .driver = {
                .name = "ili210x_i2c",
-               .owner = THIS_MODULE,
                .pm = &ili210x_i2c_pm,
        },
        .id_table = ili210x_i2c_id,
index a68ec142ee9a5bceea5674397c8b5bfc573c9fc3..82079cde849c802a058b7b3cb60a4e3295579394 100644 (file)
@@ -229,7 +229,6 @@ MODULE_DEVICE_TABLE(i2c, max11801_ts_id);
 static struct i2c_driver max11801_ts_driver = {
        .driver = {
                .name   = "max11801_ts",
-               .owner  = THIS_MODULE,
        },
        .id_table       = max11801_ts_id,
        .probe          = max11801_ts_probe,
index 67c0d31613d87f0162e66fec687706ac6864b4e4..6b69f461733c17d4542a885cc234b019079acb24 100644 (file)
@@ -577,7 +577,6 @@ static const struct of_device_id mms114_dt_match[] = {
 static struct i2c_driver mms114_driver = {
        .driver = {
                .name   = "mms114",
-               .owner  = THIS_MODULE,
                .pm     = &mms114_pm_ops,
                .of_match_table = of_match_ptr(mms114_dt_match),
        },
index 68d0d549797c493a38ef93738da065e5b37a55e0..4c71d631cbae70d5779f6a172c0b0a5d0d14d55c 100644 (file)
@@ -604,7 +604,6 @@ MODULE_DEVICE_TABLE(of, pixcir_of_match);
 
 static struct i2c_driver pixcir_i2c_ts_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "pixcir_ts",
                .pm     = &pixcir_dev_pm_ops,
                .of_match_table = of_match_ptr(pixcir_of_match),
index 697e26e52d542a90bf50694adbf26fa500a6419d..e943678ce54cd48c64240d63e964408e670d4417 100644 (file)
@@ -296,7 +296,6 @@ static struct i2c_driver st1232_ts_driver = {
        .id_table       = st1232_ts_id,
        .driver = {
                .name   = ST1232_TS_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(st1232_ts_dt_ids),
                .pm     = &st1232_ts_pm_ops,
        },
index ccc8aa6157096896511ab7777d6d8f22161c12e1..5d0cd51c6f41d126beef0e6e4bc7580288129cf6 100644 (file)
@@ -482,7 +482,6 @@ MODULE_DEVICE_TABLE(of, tsc2007_of_match);
 
 static struct i2c_driver tsc2007_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "tsc2007",
                .of_match_table = of_match_ptr(tsc2007_of_match),
        },
index 32f8ac0039367b504104093f92781d7172071abf..8d7a2852caef9803c1b6c3acf1229c1dae9c9fb4 100644 (file)
@@ -271,7 +271,6 @@ MODULE_DEVICE_TABLE(i2c, wacom_i2c_id);
 static struct i2c_driver wacom_i2c_driver = {
        .driver = {
                .name   = "wacom_i2c",
-               .owner  = THIS_MODULE,
                .pm     = &wacom_i2c_pm,
        },
 
index c4cffcfb03d388e6115dff282c4380191278e420..d00e1e33b657659cc0842f39ae398e92435647a1 100644 (file)
@@ -919,7 +919,6 @@ MODULE_DEVICE_TABLE(of, zforce_dt_idtable);
 
 static struct i2c_driver zforce_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "zforce-ts",
                .pm     = &zforce_pm_ops,
                .of_match_table = of_match_ptr(zforce_dt_idtable),