diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-12-12 14:24:07 +0530 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-12-14 15:40:50 +0900 |
commit | 65da03507735f288b2c6250def1f5142bf6d5667 (patch) | |
tree | ad46ab73bf63081b88ce5cffa8c1712aabfaa92d /drivers/gpu/drm/exynos/exynos_ddc.c | |
parent | a55622570dc3e2d294db2ca7677cc32d65dfbf33 (diff) | |
download | talos-obmc-linux-65da03507735f288b2c6250def1f5142bf6d5667.tar.gz talos-obmc-linux-65da03507735f288b2c6250def1f5142bf6d5667.zip |
drm/exynos: hdmi: Add CONFIG_OF and use of_match_ptr() macro
Add CONFIG_OF to compile conditionally. of_match_ptr eliminates having
an #ifdef returning NULL for the case when OF is disabled.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_ddc.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_ddc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_ddc.c b/drivers/gpu/drm/exynos/exynos_ddc.c index 37e6ec704e1d..bef43e0342a6 100644 --- a/drivers/gpu/drm/exynos/exynos_ddc.c +++ b/drivers/gpu/drm/exynos/exynos_ddc.c @@ -48,6 +48,7 @@ static struct i2c_device_id ddc_idtable[] = { { }, }; +#ifdef CONFIG_OF static struct of_device_id hdmiddc_match_types[] = { { .compatible = "samsung,exynos5-hdmiddc", @@ -55,12 +56,13 @@ static struct of_device_id hdmiddc_match_types[] = { /* end node */ } }; +#endif struct i2c_driver ddc_driver = { .driver = { .name = "exynos-hdmiddc", .owner = THIS_MODULE, - .of_match_table = hdmiddc_match_types, + .of_match_table = of_match_ptr(hdmiddc_match_types), }, .id_table = ddc_idtable, .probe = s5p_ddc_probe, |