]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/dpm: cleanup a type issue with rv6xx_clocks_per_unit()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 2 Jul 2013 06:22:55 +0000 (09:22 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Nov 2013 16:43:16 +0000 (12:43 -0400)
commiteb95f830a7f492c1e09758df5207a7c19d724b8f
treeffba504ad31e2530efa92ef1a52e21ced494e6fd
parent8f8c7ac3d80d48301b0f2504be7a6f72a280641f
drm/radeon/dpm: cleanup a type issue with rv6xx_clocks_per_unit()

The rv6xx_clocks_per_unit() function pretends it can set flags in a u64
bitfield but really because "1" is an int it doesn't work for more than
32 bits.  The only caller truncates the high bits away anyway.  I've
just changed it to be a u32.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/rv6xx_dpm.c