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>
Wed, 1 Feb 2012 05:27:43 +0000 (15:27 +1000)
commita9d993882008a1ae2c953064f0c2ca7e604b1333
tree6e17ed7bc6158d103fbe558b5ec84c292021d9f9
parent525895ba388c949aa906f26e3ec5cb1ab041f56b
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