mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
[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>
This commit is contained in:
parent
8f04dd0792
commit
413a42e2ea
2 changed files with 2 additions and 0 deletions
|
@ -912,6 +912,7 @@ MODULE_DEVICE_TABLE(pci, synclink_pci_tbl);
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
||||||
static struct pci_driver synclink_pci_driver = {
|
static struct pci_driver synclink_pci_driver = {
|
||||||
|
.owner = THIS_MODULE,
|
||||||
.name = "synclink",
|
.name = "synclink",
|
||||||
.id_table = synclink_pci_tbl,
|
.id_table = synclink_pci_tbl,
|
||||||
.probe = synclink_init_one,
|
.probe = synclink_init_one,
|
||||||
|
|
|
@ -500,6 +500,7 @@ MODULE_DEVICE_TABLE(pci, synclinkmp_pci_tbl);
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
||||||
static struct pci_driver synclinkmp_pci_driver = {
|
static struct pci_driver synclinkmp_pci_driver = {
|
||||||
|
.owner = THIS_MODULE,
|
||||||
.name = "synclinkmp",
|
.name = "synclinkmp",
|
||||||
.id_table = synclinkmp_pci_tbl,
|
.id_table = synclinkmp_pci_tbl,
|
||||||
.probe = synclinkmp_init_one,
|
.probe = synclinkmp_init_one,
|
||||||
|
|
Loading…
Reference in a new issue