Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1a55af2 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Sebastian Reichel
Browse files

power_supply: 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 avatarSebastian Reichel <sre@kernel.org>
parent f5bbc91c
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1534,7 +1534,6 @@ static struct i2c_driver bq24190_driver = {
	.id_table	= bq24190_i2c_ids,
	.id_table	= bq24190_i2c_ids,
	.driver = {
	.driver = {
		.name		= "bq24190-charger",
		.name		= "bq24190-charger",
		.owner		= THIS_MODULE,
		.pm		= &bq24190_pm_ops,
		.pm		= &bq24190_pm_ops,
		.of_match_table	= of_match_ptr(bq24190_of_match),
		.of_match_table	= of_match_ptr(bq24190_of_match),
	},
	},
+0 −1
Original line number Original line Diff line number Diff line
@@ -409,7 +409,6 @@ MODULE_DEVICE_TABLE(of, bq24735_match_ids);
static struct i2c_driver bq24735_charger_driver = {
static struct i2c_driver bq24735_charger_driver = {
	.driver = {
	.driver = {
		.name = "bq24735-charger",
		.name = "bq24735-charger",
		.owner = THIS_MODULE,
		.of_match_table = bq24735_match_ids,
		.of_match_table = bq24735_match_ids,
	},
	},
	.probe = bq24735_charger_probe,
	.probe = bq24735_charger_probe,
+0 −1
Original line number Original line Diff line number Diff line
@@ -1244,7 +1244,6 @@ static struct i2c_driver pm2xxx_charger_driver = {
	.remove = pm2xxx_wall_charger_remove,
	.remove = pm2xxx_wall_charger_remove,
	.driver = {
	.driver = {
		.name = "pm2xxx-wall_charger",
		.name = "pm2xxx-wall_charger",
		.owner = THIS_MODULE,
		.pm = PM2XXX_PM_OPS,
		.pm = PM2XXX_PM_OPS,
	},
	},
	.id_table = pm2xxx_id,
	.id_table = pm2xxx_id,