Commit 413a42e2eac0c90264a6a0c9ce1913dfb2376f7a

Authored by Laurent Riffard
Committed by Linus Torvalds
1 parent 8f04dd0792

[PATCH] SyncLink adapters: updates .owner field of struct pci_driver

This updates .owner field of struct pci_driver.

This allows SYSFS to create the symlink from the driver to the module which
provides it.

Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Cc: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 2 changed files with 2 additions and 0 deletions Side-by-side Diff

drivers/char/synclink.c
... ... @@ -912,6 +912,7 @@
912 912 MODULE_LICENSE("GPL");
913 913  
914 914 static struct pci_driver synclink_pci_driver = {
  915 + .owner = THIS_MODULE,
915 916 .name = "synclink",
916 917 .id_table = synclink_pci_tbl,
917 918 .probe = synclink_init_one,
drivers/char/synclinkmp.c
... ... @@ -500,6 +500,7 @@
500 500 MODULE_LICENSE("GPL");
501 501  
502 502 static struct pci_driver synclinkmp_pci_driver = {
  503 + .owner = THIS_MODULE,
503 504 .name = "synclinkmp",
504 505 .id_table = synclinkmp_pci_tbl,
505 506 .probe = synclinkmp_init_one,