drm/nv50/pm: signedness bug in nv50_pm_clocks_pre()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Jan 2012 07:20:47 +0000 (10:20 +0300)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 12 Jan 2012 05:23:33 +0000 (15:23 +1000)
commit21739a5dbd67a478d69fabf2f0515da34daace5b
tree49a7d06d6efd2aff8b07a2f2c94572f83946ddd7
parent3d37cd72a33a52ee9ae7fcee752accaa2eae857e
drm/nv50/pm: signedness bug in nv50_pm_clocks_pre()

calc_mclk() returns zero on success and negative on failure but clk is
a u32.

v2: Martin Peres:
- clk should be an int, not a u32

Signed-off-by: Martin Peres <martin.peres@labri.fr>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_pm.c