提交 dfadacca 编写于 作者: K Krzysztof Kozlowski 提交者: Mauro Carvalho Chehab

[media] i2c: Drop owner assignment from i2c_driver

i2c_driver does not need to set an owner because i2c_register_driver()
will set it.
Signed-off-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 f0788187
...@@ -401,7 +401,6 @@ MODULE_DEVICE_TABLE(i2c, adv7170_id); ...@@ -401,7 +401,6 @@ MODULE_DEVICE_TABLE(i2c, adv7170_id);
static struct i2c_driver adv7170_driver = { static struct i2c_driver adv7170_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "adv7170", .name = "adv7170",
}, },
.probe = adv7170_probe, .probe = adv7170_probe,
......
...@@ -455,7 +455,6 @@ MODULE_DEVICE_TABLE(i2c, adv7175_id); ...@@ -455,7 +455,6 @@ MODULE_DEVICE_TABLE(i2c, adv7175_id);
static struct i2c_driver adv7175_driver = { static struct i2c_driver adv7175_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "adv7175", .name = "adv7175",
}, },
.probe = adv7175_probe, .probe = adv7175_probe,
......
...@@ -1336,7 +1336,6 @@ MODULE_DEVICE_TABLE(of, adv7180_of_id); ...@@ -1336,7 +1336,6 @@ MODULE_DEVICE_TABLE(of, adv7180_of_id);
static struct i2c_driver adv7180_driver = { static struct i2c_driver adv7180_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.pm = ADV7180_PM_OPS, .pm = ADV7180_PM_OPS,
.of_match_table = of_match_ptr(adv7180_of_id), .of_match_table = of_match_ptr(adv7180_of_id),
......
...@@ -522,7 +522,6 @@ MODULE_DEVICE_TABLE(of, adv7343_of_match); ...@@ -522,7 +522,6 @@ MODULE_DEVICE_TABLE(of, adv7343_of_match);
static struct i2c_driver adv7343_driver = { static struct i2c_driver adv7343_driver = {
.driver = { .driver = {
.of_match_table = of_match_ptr(adv7343_of_match), .of_match_table = of_match_ptr(adv7343_of_match),
.owner = THIS_MODULE,
.name = "adv7343", .name = "adv7343",
}, },
.probe = adv7343_probe, .probe = adv7343_probe,
......
...@@ -1576,7 +1576,6 @@ MODULE_DEVICE_TABLE(i2c, adv7511_id); ...@@ -1576,7 +1576,6 @@ MODULE_DEVICE_TABLE(i2c, adv7511_id);
static struct i2c_driver adv7511_driver = { static struct i2c_driver adv7511_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "adv7511", .name = "adv7511",
}, },
.probe = adv7511_probe, .probe = adv7511_probe,
......
...@@ -3262,7 +3262,6 @@ static int adv76xx_remove(struct i2c_client *client) ...@@ -3262,7 +3262,6 @@ static int adv76xx_remove(struct i2c_client *client)
static struct i2c_driver adv76xx_driver = { static struct i2c_driver adv76xx_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "adv7604", .name = "adv7604",
.of_match_table = of_match_ptr(adv76xx_of_id), .of_match_table = of_match_ptr(adv76xx_of_id),
}, },
......
...@@ -3363,7 +3363,6 @@ MODULE_DEVICE_TABLE(i2c, adv7842_id); ...@@ -3363,7 +3363,6 @@ MODULE_DEVICE_TABLE(i2c, adv7842_id);
static struct i2c_driver adv7842_driver = { static struct i2c_driver adv7842_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "adv7842", .name = "adv7842",
}, },
.probe = adv7842_probe, .probe = adv7842_probe,
......
...@@ -481,7 +481,6 @@ MODULE_DEVICE_TABLE(i2c, bt819_id); ...@@ -481,7 +481,6 @@ MODULE_DEVICE_TABLE(i2c, bt819_id);
static struct i2c_driver bt819_driver = { static struct i2c_driver bt819_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "bt819", .name = "bt819",
}, },
.probe = bt819_probe, .probe = bt819_probe,
......
...@@ -252,7 +252,6 @@ MODULE_DEVICE_TABLE(i2c, bt856_id); ...@@ -252,7 +252,6 @@ MODULE_DEVICE_TABLE(i2c, bt856_id);
static struct i2c_driver bt856_driver = { static struct i2c_driver bt856_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "bt856", .name = "bt856",
}, },
.probe = bt856_probe, .probe = bt856_probe,
......
...@@ -218,7 +218,6 @@ MODULE_DEVICE_TABLE(i2c, bt866_id); ...@@ -218,7 +218,6 @@ MODULE_DEVICE_TABLE(i2c, bt866_id);
static struct i2c_driver bt866_driver = { static struct i2c_driver bt866_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "bt866", .name = "bt866",
}, },
.probe = bt866_probe, .probe = bt866_probe,
......
...@@ -211,7 +211,6 @@ MODULE_DEVICE_TABLE(i2c, cs5345_id); ...@@ -211,7 +211,6 @@ MODULE_DEVICE_TABLE(i2c, cs5345_id);
static struct i2c_driver cs5345_driver = { static struct i2c_driver cs5345_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "cs5345", .name = "cs5345",
}, },
.probe = cs5345_probe, .probe = cs5345_probe,
......
...@@ -228,7 +228,6 @@ MODULE_DEVICE_TABLE(i2c, cs53l32a_id); ...@@ -228,7 +228,6 @@ MODULE_DEVICE_TABLE(i2c, cs53l32a_id);
static struct i2c_driver cs53l32a_driver = { static struct i2c_driver cs53l32a_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "cs53l32a", .name = "cs53l32a",
}, },
.probe = cs53l32a_probe, .probe = cs53l32a_probe,
......
...@@ -5348,7 +5348,6 @@ MODULE_DEVICE_TABLE(i2c, cx25840_id); ...@@ -5348,7 +5348,6 @@ MODULE_DEVICE_TABLE(i2c, cx25840_id);
static struct i2c_driver cx25840_driver = { static struct i2c_driver cx25840_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "cx25840", .name = "cx25840",
}, },
.probe = cx25840_probe, .probe = cx25840_probe,
......
...@@ -708,7 +708,6 @@ MODULE_DEVICE_TABLE(i2c, ks0127_id); ...@@ -708,7 +708,6 @@ MODULE_DEVICE_TABLE(i2c, ks0127_id);
static struct i2c_driver ks0127_driver = { static struct i2c_driver ks0127_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "ks0127", .name = "ks0127",
}, },
.probe = ks0127_probe, .probe = ks0127_probe,
......
...@@ -185,7 +185,6 @@ MODULE_DEVICE_TABLE(i2c, m52790_id); ...@@ -185,7 +185,6 @@ MODULE_DEVICE_TABLE(i2c, m52790_id);
static struct i2c_driver m52790_driver = { static struct i2c_driver m52790_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "m52790", .name = "m52790",
}, },
.probe = m52790_probe, .probe = m52790_probe,
......
...@@ -894,7 +894,6 @@ MODULE_DEVICE_TABLE(i2c, msp_id); ...@@ -894,7 +894,6 @@ MODULE_DEVICE_TABLE(i2c, msp_id);
static struct i2c_driver msp_driver = { static struct i2c_driver msp_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "msp3400", .name = "msp3400",
.pm = &msp3400_pm_ops, .pm = &msp3400_pm_ops,
}, },
......
...@@ -583,7 +583,6 @@ MODULE_DEVICE_TABLE(i2c, mt9v011_id); ...@@ -583,7 +583,6 @@ MODULE_DEVICE_TABLE(i2c, mt9v011_id);
static struct i2c_driver mt9v011_driver = { static struct i2c_driver mt9v011_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "mt9v011", .name = "mt9v011",
}, },
.probe = mt9v011_probe, .probe = mt9v011_probe,
......
...@@ -94,7 +94,6 @@ MODULE_DEVICE_TABLE(i2c, ov7640_id); ...@@ -94,7 +94,6 @@ MODULE_DEVICE_TABLE(i2c, ov7640_id);
static struct i2c_driver ov7640_driver = { static struct i2c_driver ov7640_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "ov7640", .name = "ov7640",
}, },
.probe = ov7640_probe, .probe = ov7640_probe,
......
...@@ -1674,7 +1674,6 @@ MODULE_DEVICE_TABLE(i2c, ov7670_id); ...@@ -1674,7 +1674,6 @@ MODULE_DEVICE_TABLE(i2c, ov7670_id);
static struct i2c_driver ov7670_driver = { static struct i2c_driver ov7670_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "ov7670", .name = "ov7670",
}, },
.probe = ov7670_probe, .probe = ov7670_probe,
......
...@@ -518,7 +518,6 @@ MODULE_DEVICE_TABLE(i2c, saa6588_id); ...@@ -518,7 +518,6 @@ MODULE_DEVICE_TABLE(i2c, saa6588_id);
static struct i2c_driver saa6588_driver = { static struct i2c_driver saa6588_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "saa6588", .name = "saa6588",
}, },
.probe = saa6588_probe, .probe = saa6588_probe,
......
...@@ -793,7 +793,6 @@ MODULE_DEVICE_TABLE(i2c, saa6752hs_id); ...@@ -793,7 +793,6 @@ MODULE_DEVICE_TABLE(i2c, saa6752hs_id);
static struct i2c_driver saa6752hs_driver = { static struct i2c_driver saa6752hs_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "saa6752hs", .name = "saa6752hs",
}, },
.probe = saa6752hs_probe, .probe = saa6752hs_probe,
......
...@@ -461,7 +461,6 @@ MODULE_DEVICE_TABLE(i2c, saa7110_id); ...@@ -461,7 +461,6 @@ MODULE_DEVICE_TABLE(i2c, saa7110_id);
static struct i2c_driver saa7110_driver = { static struct i2c_driver saa7110_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "saa7110", .name = "saa7110",
}, },
.probe = saa7110_probe, .probe = saa7110_probe,
......
...@@ -1929,7 +1929,6 @@ MODULE_DEVICE_TABLE(i2c, saa711x_id); ...@@ -1929,7 +1929,6 @@ MODULE_DEVICE_TABLE(i2c, saa711x_id);
static struct i2c_driver saa711x_driver = { static struct i2c_driver saa711x_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "saa7115", .name = "saa7115",
}, },
.probe = saa711x_probe, .probe = saa711x_probe,
......
...@@ -822,7 +822,6 @@ MODULE_DEVICE_TABLE(i2c, saa7127_id); ...@@ -822,7 +822,6 @@ MODULE_DEVICE_TABLE(i2c, saa7127_id);
static struct i2c_driver saa7127_driver = { static struct i2c_driver saa7127_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "saa7127", .name = "saa7127",
}, },
.probe = saa7127_probe, .probe = saa7127_probe,
......
...@@ -1356,7 +1356,6 @@ MODULE_DEVICE_TABLE(i2c, saa717x_id); ...@@ -1356,7 +1356,6 @@ MODULE_DEVICE_TABLE(i2c, saa717x_id);
static struct i2c_driver saa717x_driver = { static struct i2c_driver saa717x_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "saa717x", .name = "saa717x",
}, },
.probe = saa717x_probe, .probe = saa717x_probe,
......
...@@ -356,7 +356,6 @@ MODULE_DEVICE_TABLE(i2c, saa7185_id); ...@@ -356,7 +356,6 @@ MODULE_DEVICE_TABLE(i2c, saa7185_id);
static struct i2c_driver saa7185_driver = { static struct i2c_driver saa7185_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "saa7185", .name = "saa7185",
}, },
.probe = saa7185_probe, .probe = saa7185_probe,
......
...@@ -388,7 +388,6 @@ MODULE_DEVICE_TABLE(i2c, sony_btf_mpx_id); ...@@ -388,7 +388,6 @@ MODULE_DEVICE_TABLE(i2c, sony_btf_mpx_id);
static struct i2c_driver sony_btf_mpx_driver = { static struct i2c_driver sony_btf_mpx_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "sony-btf-mpx", .name = "sony-btf-mpx",
}, },
.probe = sony_btf_mpx_probe, .probe = sony_btf_mpx_probe,
......
...@@ -409,7 +409,6 @@ MODULE_DEVICE_TABLE(i2c, tda7432_id); ...@@ -409,7 +409,6 @@ MODULE_DEVICE_TABLE(i2c, tda7432_id);
static struct i2c_driver tda7432_driver = { static struct i2c_driver tda7432_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "tda7432", .name = "tda7432",
}, },
.probe = tda7432_probe, .probe = tda7432_probe,
......
...@@ -199,7 +199,6 @@ MODULE_DEVICE_TABLE(i2c, tda9840_id); ...@@ -199,7 +199,6 @@ MODULE_DEVICE_TABLE(i2c, tda9840_id);
static struct i2c_driver tda9840_driver = { static struct i2c_driver tda9840_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "tda9840", .name = "tda9840",
}, },
.probe = tda9840_probe, .probe = tda9840_probe,
......
...@@ -162,7 +162,6 @@ MODULE_DEVICE_TABLE(i2c, tea6415c_id); ...@@ -162,7 +162,6 @@ MODULE_DEVICE_TABLE(i2c, tea6415c_id);
static struct i2c_driver tea6415c_driver = { static struct i2c_driver tea6415c_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "tea6415c", .name = "tea6415c",
}, },
.probe = tea6415c_probe, .probe = tea6415c_probe,
......
...@@ -144,7 +144,6 @@ MODULE_DEVICE_TABLE(i2c, tea6420_id); ...@@ -144,7 +144,6 @@ MODULE_DEVICE_TABLE(i2c, tea6420_id);
static struct i2c_driver tea6420_driver = { static struct i2c_driver tea6420_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "tea6420", .name = "tea6420",
}, },
.probe = tea6420_probe, .probe = tea6420_probe,
......
...@@ -377,7 +377,6 @@ MODULE_DEVICE_TABLE(i2c, ths7303_id); ...@@ -377,7 +377,6 @@ MODULE_DEVICE_TABLE(i2c, ths7303_id);
static struct i2c_driver ths7303_driver = { static struct i2c_driver ths7303_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "ths73x3", .name = "ths73x3",
}, },
.probe = ths7303_probe, .probe = ths7303_probe,
......
...@@ -2051,7 +2051,6 @@ MODULE_DEVICE_TABLE(i2c, tvaudio_id); ...@@ -2051,7 +2051,6 @@ MODULE_DEVICE_TABLE(i2c, tvaudio_id);
static struct i2c_driver tvaudio_driver = { static struct i2c_driver tvaudio_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "tvaudio", .name = "tvaudio",
}, },
.probe = tvaudio_probe, .probe = tvaudio_probe,
......
...@@ -1215,7 +1215,6 @@ MODULE_DEVICE_TABLE(i2c, tvp5150_id); ...@@ -1215,7 +1215,6 @@ MODULE_DEVICE_TABLE(i2c, tvp5150_id);
static struct i2c_driver tvp5150_driver = { static struct i2c_driver tvp5150_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "tvp5150", .name = "tvp5150",
}, },
.probe = tvp5150_probe, .probe = tvp5150_probe,
......
...@@ -266,7 +266,6 @@ MODULE_DEVICE_TABLE(i2c, tw9903_id); ...@@ -266,7 +266,6 @@ MODULE_DEVICE_TABLE(i2c, tw9903_id);
static struct i2c_driver tw9903_driver = { static struct i2c_driver tw9903_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "tw9903", .name = "tw9903",
}, },
.probe = tw9903_probe, .probe = tw9903_probe,
......
...@@ -234,7 +234,6 @@ MODULE_DEVICE_TABLE(i2c, tw9906_id); ...@@ -234,7 +234,6 @@ MODULE_DEVICE_TABLE(i2c, tw9906_id);
static struct i2c_driver tw9906_driver = { static struct i2c_driver tw9906_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "tw9906", .name = "tw9906",
}, },
.probe = tw9906_probe, .probe = tw9906_probe,
......
...@@ -241,7 +241,6 @@ MODULE_DEVICE_TABLE(i2c, upd64031a_id); ...@@ -241,7 +241,6 @@ MODULE_DEVICE_TABLE(i2c, upd64031a_id);
static struct i2c_driver upd64031a_driver = { static struct i2c_driver upd64031a_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "upd64031a", .name = "upd64031a",
}, },
.probe = upd64031a_probe, .probe = upd64031a_probe,
......
...@@ -213,7 +213,6 @@ MODULE_DEVICE_TABLE(i2c, upd64083_id); ...@@ -213,7 +213,6 @@ MODULE_DEVICE_TABLE(i2c, upd64083_id);
static struct i2c_driver upd64083_driver = { static struct i2c_driver upd64083_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "upd64083", .name = "upd64083",
}, },
.probe = upd64083_probe, .probe = upd64083_probe,
......
...@@ -194,7 +194,6 @@ MODULE_DEVICE_TABLE(i2c, vp27smpx_id); ...@@ -194,7 +194,6 @@ MODULE_DEVICE_TABLE(i2c, vp27smpx_id);
static struct i2c_driver vp27smpx_driver = { static struct i2c_driver vp27smpx_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "vp27smpx", .name = "vp27smpx",
}, },
.probe = vp27smpx_probe, .probe = vp27smpx_probe,
......
...@@ -560,7 +560,6 @@ MODULE_DEVICE_TABLE(i2c, vpx3220_id); ...@@ -560,7 +560,6 @@ MODULE_DEVICE_TABLE(i2c, vpx3220_id);
static struct i2c_driver vpx3220_driver = { static struct i2c_driver vpx3220_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "vpx3220", .name = "vpx3220",
}, },
.probe = vpx3220_probe, .probe = vpx3220_probe,
......
...@@ -265,7 +265,6 @@ MODULE_DEVICE_TABLE(i2c, wm8739_id); ...@@ -265,7 +265,6 @@ MODULE_DEVICE_TABLE(i2c, wm8739_id);
static struct i2c_driver wm8739_driver = { static struct i2c_driver wm8739_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "wm8739", .name = "wm8739",
}, },
.probe = wm8739_probe, .probe = wm8739_probe,
......
...@@ -318,7 +318,6 @@ MODULE_DEVICE_TABLE(i2c, wm8775_id); ...@@ -318,7 +318,6 @@ MODULE_DEVICE_TABLE(i2c, wm8775_id);
static struct i2c_driver wm8775_driver = { static struct i2c_driver wm8775_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "wm8775", .name = "wm8775",
}, },
.probe = wm8775_probe, .probe = wm8775_probe,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册