Skip to content

Commit

Permalink
drivers/macintosh: Delete owner assignment
Browse files Browse the repository at this point in the history
The field "owner" is set by core. Thus delete an extra initialisation.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Markus Elfring authored and Benjamin Herrenschmidt committed Aug 22, 2016
1 parent e340eca commit aded76b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion drivers/macintosh/ams/ams-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ MODULE_DEVICE_TABLE(i2c, ams_id);
static struct i2c_driver ams_i2c_driver = {
.driver = {
.name = "ams",
.owner = THIS_MODULE,
},
.probe = ams_i2c_probe,
.remove = ams_i2c_remove,
Expand Down
1 change: 0 additions & 1 deletion drivers/macintosh/windfarm_pm112.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@ static struct platform_driver wf_pm112_driver = {
.remove = wf_pm112_remove,
.driver = {
.name = "windfarm",
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 0 additions & 1 deletion drivers/macintosh/windfarm_pm72.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,6 @@ static struct platform_driver wf_pm72_driver = {
.remove = wf_pm72_remove,
.driver = {
.name = "windfarm",
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 0 additions & 1 deletion drivers/macintosh/windfarm_rm31.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,6 @@ static struct platform_driver wf_rm31_driver = {
.remove = wf_rm31_remove,
.driver = {
.name = "windfarm",
.owner = THIS_MODULE,
},
};

Expand Down

0 comments on commit aded76b

Please sign in to comment.