Skip to content

Commit

Permalink
Input: serio - set owner in driver structures
Browse files Browse the repository at this point in the history
Setting up owner field ensures that driver core creates symlink from
the driver to a module implementing this driver.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dmitry Torokhov committed Dec 12, 2009
1 parent 1f26978 commit 898d105
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/serio/altera_ps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ static struct platform_driver altera_ps2_driver = {
.remove = altera_ps2_remove,
.driver = {
.name = DRV_NAME,
.owner = THIS_MODULE,
},
};

Expand Down
1 change: 1 addition & 0 deletions drivers/input/serio/ambakmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ static struct amba_id amba_kmi_idtable[] = {
static struct amba_driver ambakmi_driver = {
.drv = {
.name = "kmi-pl050",
.owner = THIS_MODULE,
},
.id_table = amba_kmi_idtable,
.probe = amba_kmi_probe,
Expand Down
1 change: 1 addition & 0 deletions drivers/input/serio/at32psif.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ static struct platform_driver psif_driver = {
.remove = __exit_p(psif_remove),
.driver = {
.name = "atmel_psif",
.owner = THIS_MODULE,
},
.suspend = psif_suspend,
.resume = psif_resume,
Expand Down

0 comments on commit 898d105

Please sign in to comment.