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 | |
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')
-rw-r--r-- | drivers/char/agp/ali-agp.c | 1 | ||||
-rw-r--r-- | drivers/char/agp/amd-k7-agp.c | 1 | ||||
-rw-r--r-- | drivers/char/agp/amd64-agp.c | 1 | ||||
-rw-r--r-- | drivers/char/agp/ati-agp.c | 1 | ||||
-rw-r--r-- | drivers/char/agp/efficeon-agp.c | 1 | ||||
-rw-r--r-- | drivers/char/agp/i460-agp.c | 1 | ||||
-rw-r--r-- | drivers/char/agp/intel-agp.c | 1 | ||||
-rw-r--r-- | drivers/char/agp/nvidia-agp.c | 1 | ||||
-rw-r--r-- | drivers/char/agp/sis-agp.c | 1 | ||||
-rw-r--r-- | drivers/char/agp/sworks-agp.c | 1 | ||||
-rw-r--r-- | drivers/char/agp/uninorth-agp.c | 1 | ||||
-rw-r--r-- | drivers/char/agp/via-agp.c | 1 |
12 files changed, 12 insertions, 0 deletions
diff --git a/drivers/char/agp/ali-agp.c b/drivers/char/agp/ali-agp.c index 9c9c9c2247ce..4de5dcb42515 100644 --- a/drivers/char/agp/ali-agp.c +++ b/drivers/char/agp/ali-agp.c | |||
@@ -388,6 +388,7 @@ static struct pci_device_id agp_ali_pci_table[] = { | |||
388 | MODULE_DEVICE_TABLE(pci, agp_ali_pci_table); | 388 | MODULE_DEVICE_TABLE(pci, agp_ali_pci_table); |
389 | 389 | ||
390 | static struct pci_driver agp_ali_pci_driver = { | 390 | static struct pci_driver agp_ali_pci_driver = { |
391 | .owner = THIS_MODULE, | ||
391 | .name = "agpgart-ali", | 392 | .name = "agpgart-ali", |
392 | .id_table = agp_ali_pci_table, | 393 | .id_table = agp_ali_pci_table, |
393 | .probe = agp_ali_probe, | 394 | .probe = agp_ali_probe, |
diff --git a/drivers/char/agp/amd-k7-agp.c b/drivers/char/agp/amd-k7-agp.c index 1f776651ac64..40fcd88b2cea 100644 --- a/drivers/char/agp/amd-k7-agp.c +++ b/drivers/char/agp/amd-k7-agp.c | |||
@@ -515,6 +515,7 @@ static struct pci_device_id agp_amdk7_pci_table[] = { | |||
515 | MODULE_DEVICE_TABLE(pci, agp_amdk7_pci_table); | 515 | MODULE_DEVICE_TABLE(pci, agp_amdk7_pci_table); |
516 | 516 | ||
517 | static struct pci_driver agp_amdk7_pci_driver = { | 517 | static struct pci_driver agp_amdk7_pci_driver = { |
518 | .owner = THIS_MODULE, | ||
518 | .name = "agpgart-amdk7", | 519 | .name = "agpgart-amdk7", |
519 | .id_table = agp_amdk7_pci_table, | 520 | .id_table = agp_amdk7_pci_table, |
520 | .probe = agp_amdk7_probe, | 521 | .probe = agp_amdk7_probe, |
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[] = { | |||
701 | MODULE_DEVICE_TABLE(pci, agp_amd64_pci_table); | 701 | MODULE_DEVICE_TABLE(pci, agp_amd64_pci_table); |
702 | 702 | ||
703 | static struct pci_driver agp_amd64_pci_driver = { | 703 | static 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, |
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, |
diff --git a/drivers/char/agp/efficeon-agp.c b/drivers/char/agp/efficeon-agp.c index ac19fdcd21c1..b64028abc1ff 100644 --- a/drivers/char/agp/efficeon-agp.c +++ b/drivers/char/agp/efficeon-agp.c | |||
@@ -429,6 +429,7 @@ static struct pci_device_id agp_efficeon_pci_table[] = { | |||
429 | MODULE_DEVICE_TABLE(pci, agp_efficeon_pci_table); | 429 | MODULE_DEVICE_TABLE(pci, agp_efficeon_pci_table); |
430 | 430 | ||
431 | static struct pci_driver agp_efficeon_pci_driver = { | 431 | static struct pci_driver agp_efficeon_pci_driver = { |
432 | .owner = THIS_MODULE, | ||
432 | .name = "agpgart-efficeon", | 433 | .name = "agpgart-efficeon", |
433 | .id_table = agp_efficeon_pci_table, | 434 | .id_table = agp_efficeon_pci_table, |
434 | .probe = agp_efficeon_probe, | 435 | .probe = agp_efficeon_probe, |
diff --git a/drivers/char/agp/i460-agp.c b/drivers/char/agp/i460-agp.c index 75acb960558f..e2c616ba5834 100644 --- a/drivers/char/agp/i460-agp.c +++ b/drivers/char/agp/i460-agp.c | |||
@@ -615,6 +615,7 @@ static struct pci_device_id agp_intel_i460_pci_table[] = { | |||
615 | MODULE_DEVICE_TABLE(pci, agp_intel_i460_pci_table); | 615 | MODULE_DEVICE_TABLE(pci, agp_intel_i460_pci_table); |
616 | 616 | ||
617 | static struct pci_driver agp_intel_i460_pci_driver = { | 617 | static struct pci_driver agp_intel_i460_pci_driver = { |
618 | .owner = THIS_MODULE, | ||
618 | .name = "agpgart-intel-i460", | 619 | .name = "agpgart-intel-i460", |
619 | .id_table = agp_intel_i460_pci_table, | 620 | .id_table = agp_intel_i460_pci_table, |
620 | .probe = agp_intel_i460_probe, | 621 | .probe = agp_intel_i460_probe, |
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c index 1f7d415f432c..bf4cc9ffd5b1 100644 --- a/drivers/char/agp/intel-agp.c +++ b/drivers/char/agp/intel-agp.c | |||
@@ -1824,6 +1824,7 @@ static struct pci_device_id agp_intel_pci_table[] = { | |||
1824 | MODULE_DEVICE_TABLE(pci, agp_intel_pci_table); | 1824 | MODULE_DEVICE_TABLE(pci, agp_intel_pci_table); |
1825 | 1825 | ||
1826 | static struct pci_driver agp_intel_pci_driver = { | 1826 | static struct pci_driver agp_intel_pci_driver = { |
1827 | .owner = THIS_MODULE, | ||
1827 | .name = "agpgart-intel", | 1828 | .name = "agpgart-intel", |
1828 | .id_table = agp_intel_pci_table, | 1829 | .id_table = agp_intel_pci_table, |
1829 | .probe = agp_intel_probe, | 1830 | .probe = agp_intel_probe, |
diff --git a/drivers/char/agp/nvidia-agp.c b/drivers/char/agp/nvidia-agp.c index 80dafa3030bd..3aed0c5e2f92 100644 --- a/drivers/char/agp/nvidia-agp.c +++ b/drivers/char/agp/nvidia-agp.c | |||
@@ -398,6 +398,7 @@ static struct pci_device_id agp_nvidia_pci_table[] = { | |||
398 | MODULE_DEVICE_TABLE(pci, agp_nvidia_pci_table); | 398 | MODULE_DEVICE_TABLE(pci, agp_nvidia_pci_table); |
399 | 399 | ||
400 | static struct pci_driver agp_nvidia_pci_driver = { | 400 | static struct pci_driver agp_nvidia_pci_driver = { |
401 | .owner = THIS_MODULE, | ||
401 | .name = "agpgart-nvidia", | 402 | .name = "agpgart-nvidia", |
402 | .id_table = agp_nvidia_pci_table, | 403 | .id_table = agp_nvidia_pci_table, |
403 | .probe = agp_nvidia_probe, | 404 | .probe = agp_nvidia_probe, |
diff --git a/drivers/char/agp/sis-agp.c b/drivers/char/agp/sis-agp.c index ebc05554045c..a701361a8890 100644 --- a/drivers/char/agp/sis-agp.c +++ b/drivers/char/agp/sis-agp.c | |||
@@ -332,6 +332,7 @@ static struct pci_device_id agp_sis_pci_table[] = { | |||
332 | MODULE_DEVICE_TABLE(pci, agp_sis_pci_table); | 332 | MODULE_DEVICE_TABLE(pci, agp_sis_pci_table); |
333 | 333 | ||
334 | static struct pci_driver agp_sis_pci_driver = { | 334 | static struct pci_driver agp_sis_pci_driver = { |
335 | .owner = THIS_MODULE, | ||
335 | .name = "agpgart-sis", | 336 | .name = "agpgart-sis", |
336 | .id_table = agp_sis_pci_table, | 337 | .id_table = agp_sis_pci_table, |
337 | .probe = agp_sis_probe, | 338 | .probe = agp_sis_probe, |
diff --git a/drivers/char/agp/sworks-agp.c b/drivers/char/agp/sworks-agp.c index 161d22b67fa3..94a855e1c0b5 100644 --- a/drivers/char/agp/sworks-agp.c +++ b/drivers/char/agp/sworks-agp.c | |||
@@ -543,6 +543,7 @@ static struct pci_device_id agp_serverworks_pci_table[] = { | |||
543 | MODULE_DEVICE_TABLE(pci, agp_serverworks_pci_table); | 543 | MODULE_DEVICE_TABLE(pci, agp_serverworks_pci_table); |
544 | 544 | ||
545 | static struct pci_driver agp_serverworks_pci_driver = { | 545 | static struct pci_driver agp_serverworks_pci_driver = { |
546 | .owner = THIS_MODULE, | ||
546 | .name = "agpgart-serverworks", | 547 | .name = "agpgart-serverworks", |
547 | .id_table = agp_serverworks_pci_table, | 548 | .id_table = agp_serverworks_pci_table, |
548 | .probe = agp_serverworks_probe, | 549 | .probe = agp_serverworks_probe, |
diff --git a/drivers/char/agp/uninorth-agp.c b/drivers/char/agp/uninorth-agp.c index c8255312b8c1..183c50acab27 100644 --- a/drivers/char/agp/uninorth-agp.c +++ b/drivers/char/agp/uninorth-agp.c | |||
@@ -658,6 +658,7 @@ static struct pci_device_id agp_uninorth_pci_table[] = { | |||
658 | MODULE_DEVICE_TABLE(pci, agp_uninorth_pci_table); | 658 | MODULE_DEVICE_TABLE(pci, agp_uninorth_pci_table); |
659 | 659 | ||
660 | static struct pci_driver agp_uninorth_pci_driver = { | 660 | static struct pci_driver agp_uninorth_pci_driver = { |
661 | .owner = THIS_MODULE, | ||
661 | .name = "agpgart-uninorth", | 662 | .name = "agpgart-uninorth", |
662 | .id_table = agp_uninorth_pci_table, | 663 | .id_table = agp_uninorth_pci_table, |
663 | .probe = agp_uninorth_probe, | 664 | .probe = agp_uninorth_probe, |
diff --git a/drivers/char/agp/via-agp.c b/drivers/char/agp/via-agp.c index c847df575cf5..5d9a13700074 100644 --- a/drivers/char/agp/via-agp.c +++ b/drivers/char/agp/via-agp.c | |||
@@ -518,6 +518,7 @@ MODULE_DEVICE_TABLE(pci, agp_via_pci_table); | |||
518 | 518 | ||
519 | 519 | ||
520 | static struct pci_driver agp_via_pci_driver = { | 520 | static struct pci_driver agp_via_pci_driver = { |
521 | .owner = THIS_MODULE, | ||
521 | .name = "agpgart-via", | 522 | .name = "agpgart-via", |
522 | .id_table = agp_via_pci_table, | 523 | .id_table = agp_via_pci_table, |
523 | .probe = agp_via_probe, | 524 | .probe = agp_via_probe, |