]> git.baikalelectronics.ru Git - kernel.git/commit
drm/kms/radeon/agp: Move the check of the aper_size after drm_acp_acquire and drm_agp...
authorJohn Kacur <jkacur@redhat.com>
Sun, 31 Jan 2010 19:38:03 +0000 (20:38 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 1 Feb 2010 01:19:31 +0000 (11:19 +1000)
commitcdf15edda848c754ade5dbbfcf27e7d3f2904267
treedf7ef0a169d7bb96b326595affef6836e9f588d7
parent2c15a88b696a5052697f61804416c4cfb78da977
drm/kms/radeon/agp: Move the check of the aper_size after drm_acp_acquire and drm_agp_info

First call drm_agp_acquire to check if agp has been acquired.
Second call drm_agp_info to fill in the info data struct, including aper_size.
Finally do the check to see if the aper_size makes sense.

Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_agp.c