From: Jani Nikula Date: Wed, 4 Dec 2024 14:31:11 +0000 (+0200) Subject: accel/ivpu: remove DRIVER_DATE conditional drm_driver init X-Git-Tag: v6.14-rc1~174^2~18^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75bfd8db89020e105daef8cd07135e94cf72fa56;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Jacek Lawrynowicz Reviewed-by: Thomas Zimmermann Link: https://patchwork.freedesktop.org/patch/msgid/0e4276552dde66dcdd275740cbc63d232cefd8f4.1733322525.git.jani.nikula@intel.com Signed-off-by: Jani Nikula --- diff --git a/drivers/accel/ivpu/ivpu_drv.c b/drivers/accel/ivpu/ivpu_drv.c index ca2bf47ce2484..1f359dbe5150f 100644 --- a/drivers/accel/ivpu/ivpu_drv.c +++ b/drivers/accel/ivpu/ivpu_drv.c @@ -458,15 +458,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)