Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <alexander.deucher@amd.com>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/0e4276552dde66dcdd275740cbc63d232cefd8f4.1733322525.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

-7
-7
drivers/accel/ivpu/ivpu_drv.c
··· 458 458 .name = DRIVER_NAME, 459 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 461 .date = UTS_RELEASE, 468 462 .major = 1, 469 - #endif 470 463 }; 471 464 472 465 static void ivpu_context_abort_invalid(struct ivpu_device *vdev)