mwifiex: fix typo in PCIe adapter NULL check
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / exynos / exynos_hdmiphy.c
index 27d1720f1bbdc627f4acd45629c4e094ea24218a..6206056f4a3328b7b4e5e58b78e64140a0b32bcc 100644 (file)
@@ -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,