diff --git a/drivers/gpu/drm/nouveau/core/subdev/timer/nv04.c b/drivers/gpu/drm/nouveau/core/subdev/timer/nv04.c index c26ca9b..b42adbe 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/timer/nv04.c +++ b/drivers/gpu/drm/nouveau/core/subdev/timer/nv04.c @@ -23,6 +23,8 @@ */ #include +#include +#include #define NV04_PTIMER_INTR_0 0x009100 #define NV04_PTIMER_INTR_EN_0 0x009140 @@ -170,9 +172,9 @@ nv04_timer_init(struct nouveau_object *object) d = 1000000 / 32; /* determine base clock for timer source */ -#if 0 /*XXX*/ +#if 1 /*XXX*/ if (device->chipset < 0x40) { - n = nouveau_hw_get_clock(device, PLL_CORE); + n = nouveau_hw_get_clock(((struct nouveau_drm *)nouveau_client(priv))->dev, PLL_CORE); } else #endif if (device->chipset <= 0x40) {