diff options
author | Roy Spliet <rspliet@eclipso.eu> | 2015-05-23 11:37:42 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-07-27 11:56:07 +0300 |
commit | 9694554691d26226f84fa1d6f500b7e7c9288510 (patch) | |
tree | f9d49fbc89fb0239a84023423288302affbb3730 /drivers/gpu | |
parent | 7512223b1ece29a5968ed8b67ccb891d21b7834b (diff) | |
download | linux-9694554691d26226f84fa1d6f500b7e7c9288510.tar.xz |
drm/nouveau/clk/gt215: u32->s32 for difference in req. and set clock
This difference can of course be negative too...
Signed-off-by: Roy Spliet <rspliet@eclipso.eu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c index 822d32a28d6e..065e9f5c8db9 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c @@ -180,7 +180,8 @@ gt215_clk_info(struct nvkm_clk *clock, int clk, u32 khz, struct gt215_clk_info *info) { struct gt215_clk_priv *priv = (void *)clock; - u32 oclk, sclk, sdiv, diff; + u32 oclk, sclk, sdiv; + s32 diff; info->clk = 0; |