drm/sun4i: Report proper vblank
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 20 Jun 2016 10:20:58 +0000 (12:20 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 30 Jun 2016 19:55:26 +0000 (21:55 +0200)
The sun4i display engine doesn't have any vblank counter. Use the proper
helper for that.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_drv.c

index 257d2b4f36456a10e0d4bdabd4407deb1aa2b581..cbe4a25a748c184df3bfa54e8f387cfa07313939 100644 (file)
@@ -92,7 +92,7 @@ static struct drm_driver sun4i_drv_driver = {
        /* Frame Buffer Operations */
 
        /* VBlank Operations */
-       .get_vblank_counter     = drm_vblank_count,
+       .get_vblank_counter     = drm_vblank_no_hw_counter,
        .enable_vblank          = sun4i_drv_enable_vblank,
        .disable_vblank         = sun4i_drv_disable_vblank,
 };