summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/exynos/exynos_hdmiphy.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-12-12 08:54:07 (GMT)
committerInki Dae <inki.dae@samsung.com>2012-12-14 06:40:50 (GMT)
commit65da03507735f288b2c6250def1f5142bf6d5667 (patch)
treead46ab73bf63081b88ce5cffa8c1712aabfaa92d /drivers/gpu/drm/exynos/exynos_hdmiphy.c
parenta55622570dc3e2d294db2ca7677cc32d65dfbf33 (diff)
downloadlinux-fsl-qoriq-65da03507735f288b2c6250def1f5142bf6d5667.tar.xz
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_hdmiphy.c')
-rw-r--r--drivers/gpu/drm/exynos/exynos_hdmiphy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmiphy.c b/drivers/gpu/drm/exynos/exynos_hdmiphy.c
index 27d1720..6206056 100644
--- a/drivers/gpu/drm/exynos/exynos_hdmiphy.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmiphy.c
@@ -46,6 +46,7 @@ static const struct i2c_device_id hdmiphy_id[] = {
{ },
};
+#ifdef CONFIG_OF
static struct of_device_id hdmiphy_match_types[] = {
{
.compatible = "samsung,exynos5-hdmiphy",
@@ -53,12 +54,13 @@ static struct of_device_id hdmiphy_match_types[] = {
/* end node */
}
};
+#endif
struct i2c_driver hdmiphy_driver = {
.driver = {
.name = "exynos-hdmiphy",
.owner = THIS_MODULE,
- .of_match_table = hdmiphy_match_types,
+ .of_match_table = of_match_ptr(hdmiphy_match_types),
},
.id_table = hdmiphy_id,
.probe = hdmiphy_probe,