diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c index 1a329f90fca1..57fd411d71f0 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c @@ -2066,13 +2066,18 @@ static const struct dw_mipi_dsi2_plat_data rk3588_mipi_dsi2_plat_data = { }; static const struct of_device_id dw_mipi_dsi2_dt_ids[] = { +#if IS_ENABLED(CONFIG_CPU_RK3576) { .compatible = "rockchip,rk3576-mipi-dsi2", .data = &rk3576_mipi_dsi2_plat_data, - }, { + }, +#endif +#if IS_ENABLED(CONFIG_CPU_RK3588) + { .compatible = "rockchip,rk3588-mipi-dsi2", .data = &rk3588_mipi_dsi2_plat_data, }, +#endif {} }; MODULE_DEVICE_TABLE(of, dw_mipi_dsi2_dt_ids);