History

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.

Jani Nikula committed 1 year ago

Commit 75bfd8d1 parent 23e08dc1 file · +0 −7Browse files

Unified · Split

drivers/accel/ivpu/ivpu_drv.c+0−7
@@ -458,15 +458,8 @@ static const struct drm_driver driver = { · 457 unmodified lines
458 .name = DRIVER_NAME,458 .name = DRIVER_NAME,
459 .desc = DRIVER_DESC,459 .desc = DRIVER_DESC,
460 460
461#ifdef DRIVER_DATE
462 .date = DRIVER_DATE,
463 .major = DRIVER_MAJOR,
464 .minor = DRIVER_MINOR,
465 .patchlevel = DRIVER_PATCHLEVEL,
466#else
467 .date = UTS_RELEASE,461 .date = UTS_RELEASE,
468 .major = 1,462 .major = 1,
469#endif
470};463};
471 464
472static void ivpu_context_abort_invalid(struct ivpu_device *vdev)465static void ivpu_context_abort_invalid(struct ivpu_device *vdev)