drm/radeon/kms: Disable agp only if we are dealing with an AGP GPU
commit30256a3f6b646f6c6ab7276a97b40792faac5f1d
authorJerome Glisse <jglisse@redhat.com>
Mon, 30 Nov 2009 16:47:59 +0000 (30 17:47 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Dec 2009 01:37:14 +0000 (2 11:37 +1000)
tree4d830df9ffce519eb4b37767576972cae1b6a09d
parentec51efa9b2b8ff10b535a853c293e85bada886e4
drm/radeon/kms: Disable agp only if we are dealing with an AGP GPU

On IGP if you pass option agpmode=-1 you would overwrite the set_page
function callback with improper function which endup in non functioning
hw. This patch will disable agp when giving agpmode=-1 parameter only
if we are dealing with an AGP GPU.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_device.c