The ivpu struct drm_driver has conditional initialization based on #ifdef
DRIVER_DATE, which is never defined anywhere. Neither are the macros
referenced within the block: DRIVER_DATE, DRIVER_MAJOR, DRIVER_MINOR,
and DRIVER_PATCHLEVEL. With the struct drm_driver date member going away
anyway, just remove the conditional compilation.

Signed-off-by: Jani Nikula <[email protected]>

---

Note: I prefer to merge this together with the other patches via
drm-misc-next.

Cc: David Airlie <[email protected]>
Cc: Jacek Lawrynowicz <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Oded Gabbay <[email protected]>
Cc: Simona Vetter <[email protected]>
Cc: Stanislaw Gruszka <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: [email protected]
---
 drivers/accel/ivpu/ivpu_drv.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/accel/ivpu/ivpu_drv.c b/drivers/accel/ivpu/ivpu_drv.c
index e7d8967c02f2..07c7e5a5f22b 100644
--- a/drivers/accel/ivpu/ivpu_drv.c
+++ b/drivers/accel/ivpu/ivpu_drv.c
@@ -456,15 +456,8 @@ static const struct drm_driver driver = {
        .name = DRIVER_NAME,
        .desc = DRIVER_DESC,
 
-#ifdef DRIVER_DATE
-       .date = DRIVER_DATE,
-       .major = DRIVER_MAJOR,
-       .minor = DRIVER_MINOR,
-       .patchlevel = DRIVER_PATCHLEVEL,
-#else
        .date = UTS_RELEASE,
        .major = 1,
-#endif
 };
 
 static void ivpu_context_abort_invalid(struct ivpu_device *vdev)
-- 
2.39.5

Reply via email to