Commit 14e51e59 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Greg Kroah-Hartman

misc: 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: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1037b278
...@@ -106,7 +106,6 @@ MODULE_DEVICE_TABLE(i2c, ad_dpot_id); ...@@ -106,7 +106,6 @@ MODULE_DEVICE_TABLE(i2c, ad_dpot_id);
static struct i2c_driver ad_dpot_i2c_driver = { static struct i2c_driver ad_dpot_i2c_driver = {
.driver = { .driver = {
.name = "ad_dpot", .name = "ad_dpot",
.owner = THIS_MODULE,
}, },
.probe = ad_dpot_i2c_probe, .probe = ad_dpot_i2c_probe,
.remove = ad_dpot_i2c_remove, .remove = ad_dpot_i2c_remove,
......
...@@ -1275,7 +1275,6 @@ static const struct dev_pm_ops apds990x_pm_ops = { ...@@ -1275,7 +1275,6 @@ static const struct dev_pm_ops apds990x_pm_ops = {
static struct i2c_driver apds990x_driver = { static struct i2c_driver apds990x_driver = {
.driver = { .driver = {
.name = "apds990x", .name = "apds990x",
.owner = THIS_MODULE,
.pm = &apds990x_pm_ops, .pm = &apds990x_pm_ops,
}, },
.probe = apds990x_probe, .probe = apds990x_probe,
......
...@@ -1396,7 +1396,6 @@ static const struct dev_pm_ops bh1770_pm_ops = { ...@@ -1396,7 +1396,6 @@ static const struct dev_pm_ops bh1770_pm_ops = {
static struct i2c_driver bh1770_driver = { static struct i2c_driver bh1770_driver = {
.driver = { .driver = {
.name = "bh1770glc", .name = "bh1770glc",
.owner = THIS_MODULE,
.pm = &bh1770_pm_ops, .pm = &bh1770_pm_ops,
}, },
.probe = bh1770_probe, .probe = bh1770_probe,
......
...@@ -66,7 +66,6 @@ MODULE_DEVICE_TABLE(i2c, bmp085_id); ...@@ -66,7 +66,6 @@ MODULE_DEVICE_TABLE(i2c, bmp085_id);
static struct i2c_driver bmp085_i2c_driver = { static struct i2c_driver bmp085_i2c_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = BMP085_NAME, .name = BMP085_NAME,
}, },
.id_table = bmp085_id, .id_table = bmp085_id,
......
...@@ -689,7 +689,6 @@ static int at24_remove(struct i2c_client *client) ...@@ -689,7 +689,6 @@ static int at24_remove(struct i2c_client *client)
static struct i2c_driver at24_driver = { static struct i2c_driver at24_driver = {
.driver = { .driver = {
.name = "at24", .name = "at24",
.owner = THIS_MODULE,
}, },
.probe = at24_probe, .probe = at24_probe,
.remove = at24_remove, .remove = at24_remove,
......
...@@ -465,7 +465,6 @@ MODULE_DEVICE_TABLE(i2c, isl29003_id); ...@@ -465,7 +465,6 @@ MODULE_DEVICE_TABLE(i2c, isl29003_id);
static struct i2c_driver isl29003_driver = { static struct i2c_driver isl29003_driver = {
.driver = { .driver = {
.name = ISL29003_DRV_NAME, .name = ISL29003_DRV_NAME,
.owner = THIS_MODULE,
.pm = ISL29003_PM_OPS, .pm = ISL29003_PM_OPS,
}, },
.probe = isl29003_probe, .probe = isl29003_probe,
......
...@@ -274,7 +274,6 @@ static const struct dev_pm_ops lis3_pm_ops = { ...@@ -274,7 +274,6 @@ static const struct dev_pm_ops lis3_pm_ops = {
static struct i2c_driver lis3lv02d_i2c_driver = { static struct i2c_driver lis3lv02d_i2c_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.pm = &lis3_pm_ops, .pm = &lis3_pm_ops,
.of_match_table = of_match_ptr(lis3lv02d_i2c_dt_ids), .of_match_table = of_match_ptr(lis3lv02d_i2c_dt_ids),
}, },
......
...@@ -939,7 +939,6 @@ static struct platform_driver kim_platform_driver = { ...@@ -939,7 +939,6 @@ static struct platform_driver kim_platform_driver = {
.resume = kim_resume, .resume = kim_resume,
.driver = { .driver = {
.name = "kim", .name = "kim",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(kim_of_match), .of_match_table = of_match_ptr(kim_of_match),
}, },
}; };
......
...@@ -446,7 +446,6 @@ MODULE_DEVICE_TABLE(i2c, tsl2550_id); ...@@ -446,7 +446,6 @@ MODULE_DEVICE_TABLE(i2c, tsl2550_id);
static struct i2c_driver tsl2550_driver = { static struct i2c_driver tsl2550_driver = {
.driver = { .driver = {
.name = TSL2550_DRV_NAME, .name = TSL2550_DRV_NAME,
.owner = THIS_MODULE,
.pm = TSL2550_PM_OPS, .pm = TSL2550_PM_OPS,
}, },
.probe = tsl2550_probe, .probe = tsl2550_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment