diff options
author | Dave Jones <davej@redhat.com> | 2005-10-24 23:20:11 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2005-10-24 23:20:11 -0400 |
commit | ea248bcaadd5bafe4217357e1e511ac55639bcf3 (patch) | |
tree | 7d12e7f57cf9abf536fd992cefd17d95f7b31725 /drivers/char/agp/ati-agp.c | |
parent | 0ea27d9f2fb5b998063323bff47ab87891ced9e2 (diff) |
[AGPGART] Set .owner field of struct pci_driver.
From: Laurent Riffard <laurent.riffard@free.fr>
This updates .owner field of struct pci_driver.
This allows SYSFS to create the symlink from the driver to the module which
provides it.
$ tree /sys/bus/pci/drivers/agpgart-via/
/sys/bus/pci/drivers/agpgart-via/
|-- 0000:00:00.0 -> ../../../../devices/pci0000:00/0000:00:00.0
|-- bind
|-- module -> ../../../../module/via_agp
|-- new_id
`-- unbind
Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'drivers/char/agp/ati-agp.c')
-rw-r--r-- | drivers/char/agp/ati-agp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/agp/ati-agp.c b/drivers/char/agp/ati-agp.c index 109582ab3704..9e9ad8cbf296 100644 --- a/drivers/char/agp/ati-agp.c +++ b/drivers/char/agp/ati-agp.c | |||
@@ -519,6 +519,7 @@ static struct pci_device_id agp_ati_pci_table[] = { | |||
519 | MODULE_DEVICE_TABLE(pci, agp_ati_pci_table); | 519 | MODULE_DEVICE_TABLE(pci, agp_ati_pci_table); |
520 | 520 | ||
521 | static struct pci_driver agp_ati_pci_driver = { | 521 | static struct pci_driver agp_ati_pci_driver = { |
522 | .owner = THIS_MODULE, | ||
522 | .name = "agpgart-ati", | 523 | .name = "agpgart-ati", |
523 | .id_table = agp_ati_pci_table, | 524 | .id_table = agp_ati_pci_table, |
524 | .probe = agp_ati_probe, | 525 | .probe = agp_ati_probe, |