[AGPGART] prevent probe collision of sis-agp and amd64_agp
authorOliver Neukum <oneukum@suse.de>
Tue, 27 Mar 2007 05:39:20 +0000 (21:39 -0800)
committerDave Jones <davej@redhat.com>
Thu, 26 Apr 2007 18:22:50 +0000 (14:22 -0400)
commit82eab1306c20f67f718cb5439f7efd62f4e86fc8
tree7b0a1e3a6149578e4b0b5f0dd1c3423e9a90cc9f
parentde46c33745f5e2ad594c72f2cf5f490861b16ce1
[AGPGART] prevent probe collision of sis-agp and amd64_agp

For some vendor/id pairs the kernel will autoload both the sis-agp and the
amd64_agp modules as the sis-agp module will load for all sis devices.
This collision causes the bug reported in:
http://bugzilla.novell.com/show_bug.cgi?id=248665

As currently sis_probe does its own matching, requesting the whole range
gains nothing.  The clean fix seems to me to leave the matching to the core
and advertise only the devices actually supported.  This patch does so.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/char/agp/sis-agp.c