Message ID | 20210602091324.9440-1-jrdr.linux@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/rockchip: defined struct vop_driver_dt_match[] under CONFIG_OF | expand |
diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c index ca7cc82125cb..2cdf889ca361 100644 --- a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c +++ b/drivers/gpu/drm/rockchip/rockchip_vop_reg.c @@ -1069,6 +1069,7 @@ static const struct vop_data rk3328_vop = { .win_size = ARRAY_SIZE(rk3328_vop_win_data), }; +#ifdef CONFIG_OF static const struct of_device_id vop_driver_dt_match[] = { { .compatible = "rockchip,rk3036-vop", .data = &rk3036_vop }, @@ -1099,6 +1100,7 @@ static const struct of_device_id vop_driver_dt_match[] = { {}, }; MODULE_DEVICE_TABLE(of, vop_driver_dt_match); +#endif static int vop_probe(struct platform_device *pdev) {