]> git.baikalelectronics.ru Git - kernel.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)
committerDave Airlie <airlied@redhat.com>
Wed, 19 May 2010 00:13:19 +0000 (10:13 +1000)
commit02e1f4458b0d3062a9bfb261c345d380b998af58
tree78c8730b790ab1ad038a780f766e4b08371a69b9
parent0fed92718f232e47b43779d5ac615583c09ef550
amd64-agp: Probe unknown AGP devices the right way

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>
drivers/char/agp/amd64-agp.c