diff options
author | Rahul Sharma <rahul.sharma@samsung.com> | 2013-06-11 10:11:29 -0400 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2013-06-28 08:13:56 -0400 |
commit | 5f916e289894e97f3b4c3a91a44debf9a47d1b85 (patch) | |
tree | 7c1d3a67c791902ba92af284d5328f0b2e7cd479 /drivers/gpu/drm/exynos | |
parent | 23f340e0314eab461d33ae91250f9b47af23918f (diff) |
drm/exynos: use of_get_named_gpio to get hdmi hpd gpio
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>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_hdmi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index ce13a23a8274..743059fed39b 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c | |||
@@ -1864,7 +1864,6 @@ static struct s5p_hdmi_platform_data *drm_hdmi_dt_parse_pdata | |||
1864 | { | 1864 | { |
1865 | struct device_node *np = dev->of_node; | 1865 | struct device_node *np = dev->of_node; |
1866 | struct s5p_hdmi_platform_data *pd; | 1866 | struct s5p_hdmi_platform_data *pd; |
1867 | enum of_gpio_flags flags; | ||
1868 | u32 value; | 1867 | u32 value; |
1869 | 1868 | ||
1870 | pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); | 1869 | pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); |
@@ -1878,7 +1877,7 @@ static struct s5p_hdmi_platform_data *drm_hdmi_dt_parse_pdata | |||
1878 | goto err_data; | 1877 | goto err_data; |
1879 | } | 1878 | } |
1880 | 1879 | ||
1881 | pd->hpd_gpio = of_get_named_gpio_flags(np, "hpd-gpio", 0, &flags); | 1880 | pd->hpd_gpio = of_get_named_gpio(np, "hpd-gpio", 0); |
1882 | 1881 | ||
1883 | return pd; | 1882 | return pd; |
1884 | 1883 | ||