Skip to content

Commit 75bfd8d

Browse files
committed
accel/ivpu: remove DRIVER_DATE conditional drm_driver init
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. Acked-by: Alex Deucher <[email protected]> Reviewed-by: Jacek Lawrynowicz <[email protected]> Reviewed-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/0e4276552dde66dcdd275740cbc63d232cefd8f4.1733322525.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <[email protected]>
1 parent 23e08dc commit 75bfd8d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/accel/ivpu/ivpu_drv.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -458,15 +458,8 @@ static const struct drm_driver driver = {
458458
.name = DRIVER_NAME,
459459
.desc = DRIVER_DESC,
460460

461-
#ifdef DRIVER_DATE
462-
.date = DRIVER_DATE,
463-
.major = DRIVER_MAJOR,
464-
.minor = DRIVER_MINOR,
465-
.patchlevel = DRIVER_PATCHLEVEL,
466-
#else
467461
.date = UTS_RELEASE,
468462
.major = 1,
469-
#endif
470463
};
471464

472465
static void ivpu_context_abort_invalid(struct ivpu_device *vdev)

0 commit comments

Comments
 (0)