]> git.karo-electronics.de Git - karo-tx-linux.git/commit
amd64-agp: Probe unknown AGP devices the right way
authorBen Hutchings <ben@decadent.org.uk>
Wed, 24 Mar 2010 03:36:31 +0000 (03:36 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:29:42 +0000 (10:29 -0700)
commit104ce01cb95eb7eef75181b73f7c5a68a5d4b2a0
tree5abc20db87632e88c8caba707a9969d31b39f9b0
parentf4795406efcf49765ed02d8a5c2d366d353da017
amd64-agp: Probe unknown AGP devices the right way

commit 6fd024893911dcb51b4a0aa71971db5ba38f7071 upstream.

The current initialisation code probes 'unsupported' AGP devices
simply by calling its own probe function.  It does not lock these
devices or even check whether another driver is already bound to
them.

We must use the device core to manage this.  So if the specific
device id table didn't match anything and agp_try_unsupported=1,
switch the device id table and call driver_attach() again.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/agp/amd64-agp.c