Skip to content

Commit

Permalink
power: z2_battery: remove .owner field for driver
Browse files Browse the repository at this point in the history
Remove .owner field if calls are used which set it automatically.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
  • Loading branch information
weiyj authored and sre committed Aug 15, 2016
1 parent 8dfdd2a commit 1bbd3d2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/power/supply/z2_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ MODULE_DEVICE_TABLE(i2c, z2_batt_id);
static struct i2c_driver z2_batt_driver = {
.driver = {
.name = "z2-battery",
.owner = THIS_MODULE,
.pm = Z2_BATTERY_PM_OPS
},
.probe = z2_batt_probe,
Expand Down

0 comments on commit 1bbd3d2

Please sign in to comment.