drm/radeon: fix and simplify pot argument checks v3
authorChristian König <deathsimple@vodafone.de>
Tue, 23 Oct 2012 13:53:16 +0000 (15:53 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Oct 2012 15:41:11 +0000 (11:41 -0400)
commit1bcb04f758c7d3ab9a454525c004bdb8c0fccd98
tree36e7e1e7cdaf518f2a8a9eccc992bf52f518c9c5
parent08eda32b13c045b6219464764d6028d86d3c58a8
drm/radeon: fix and simplify pot argument checks v3

GART and VRAM size limits need to be a power of two.
Fix values greater than 1GB and simplify those checks a bit.

v2: also fix radeon_vram_limit usage, and simplify test even more.
v3: agd5f: fix spelling as noticed by Klaus Schnass

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_device.c