aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/agp/amd64-agp.c
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2005-10-24 23:20:11 -0400
committerDave Jones <davej@redhat.com>2005-10-24 23:20:11 -0400
commitea248bcaadd5bafe4217357e1e511ac55639bcf3 (patch)
tree7d12e7f57cf9abf536fd992cefd17d95f7b31725 /drivers/char/agp/amd64-agp.c
parent0ea27d9f2fb5b998063323bff47ab87891ced9e2 (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/amd64-agp.c')
-rw-r--r--drivers/char/agp/amd64-agp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/agp/amd64-agp.c b/drivers/char/agp/amd64-agp.c
index 0a7624a9b1c1..b954ddcecd31 100644
--- a/drivers/char/agp/amd64-agp.c
+++ b/drivers/char/agp/amd64-agp.c
@@ -701,6 +701,7 @@ static struct pci_device_id agp_amd64_pci_table[] = {
701MODULE_DEVICE_TABLE(pci, agp_amd64_pci_table); 701MODULE_DEVICE_TABLE(pci, agp_amd64_pci_table);
702 702
703static struct pci_driver agp_amd64_pci_driver = { 703static struct pci_driver agp_amd64_pci_driver = {
704 .owner = THIS_MODULE,
704 .name = "agpgart-amd64", 705 .name = "agpgart-amd64",
705 .id_table = agp_amd64_pci_table, 706 .id_table = agp_amd64_pci_table,
706 .probe = agp_amd64_probe, 707 .probe = agp_amd64_probe,