video: tegra: bitness sanitary cleanup
[linux-3.10.git] / drivers / video / tegra / host / host1x / host1x.c
index 2d427c7..63c51c4 100644 (file)
@@ -135,7 +135,10 @@ static int nvhost_ioctl_ctrl_syncpt_waitex(struct nvhost_ctrl_userctx *ctx,
        if (args->id >= nvhost_syncpt_nb_pts(&ctx->dev->syncpt))
                return -EINVAL;
        if (args->timeout == NVHOST_NO_TIMEOUT)
-               timeout = MAX_SCHEDULE_TIMEOUT;
+               /* FIXME: MAX_SCHEDULE_TIMEOUT is ulong which can be bigger
+                   than u32 so we should fix nvhost_syncpt_wait_timeout to
+                   take ulong not u32. */
+               timeout = (u32)MAX_SCHEDULE_TIMEOUT;
        else
                timeout = (u32)msecs_to_jiffies(args->timeout);