]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/exynos: use of_get_named_gpio to get hdmi hpd gpio
authorRahul Sharma <rahul.sharma@samsung.com>
Tue, 11 Jun 2013 14:11:29 +0000 (19:41 +0530)
committerInki Dae <daeinki@gmail.com>
Fri, 28 Jun 2013 12:13:56 +0000 (21:13 +0900)
Cleanup by removing flags variable from drm_hdmi_dt_parse_pdata
which is not used anywhere. Swtiching to of_get_named_gpio instead
of of_get_named_gpio_flags solved this.

Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Acked-by: Seung-Woo Kim <sw0312@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c

index ce13a23a8274cc0ef6f3518d66529d9b908a7758..743059fed39b709551df841fbfcbad0fdc95afc1 100644 (file)
@@ -1864,7 +1864,6 @@ static struct s5p_hdmi_platform_data *drm_hdmi_dt_parse_pdata
 {
        struct device_node *np = dev->of_node;
        struct s5p_hdmi_platform_data *pd;
-       enum of_gpio_flags flags;
        u32 value;
 
        pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL);
@@ -1878,7 +1877,7 @@ static struct s5p_hdmi_platform_data *drm_hdmi_dt_parse_pdata
                goto err_data;
        }
 
-       pd->hpd_gpio = of_get_named_gpio_flags(np, "hpd-gpio", 0, &flags);
+       pd->hpd_gpio = of_get_named_gpio(np, "hpd-gpio", 0);
 
        return pd;