drm/v3d: Remove unnecessary dma_fence_ops.
authorEric Anholt <eric@anholt.net>
Tue, 3 Jul 2018 17:05:13 +0000 (10:05 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 5 Jul 2018 18:42:50 +0000 (11:42 -0700)
The dma-fence core as of commit 418cc6ca0607 ("dma-fence: Make ->wait
callback optional") provides appropriate defaults for these methods.

Signed-off-by: Eric Anholt <eric@anholt.net>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180703170515.6298-2-eric@anholt.net
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
drivers/gpu/drm/v3d/v3d_fence.c

index bfe31a89668bdc589ca90b3a573c7987ec633890..50bfcf9a8a1ac57d536fe4883f2727e88b42cdf7 100644 (file)
@@ -35,19 +35,7 @@ static const char *v3d_fence_get_timeline_name(struct dma_fence *fence)
                return "v3d-render";
 }
 
-static bool v3d_fence_enable_signaling(struct dma_fence *fence)
-{
-       return true;
-}
-
 const struct dma_fence_ops v3d_fence_ops = {
        .get_driver_name = v3d_fence_get_driver_name,
        .get_timeline_name = v3d_fence_get_timeline_name,
-       .enable_signaling = v3d_fence_enable_signaling,
-       /* Each of our fences gets signaled as complete by the IRQ
-        * handler, so we rely on the core's tracking of signaling.
-        */
-       .signaled = NULL,
-       .wait = dma_fence_default_wait,
-       .release = dma_fence_free,
 };