提交 5f916e28 编写于 作者: R Rahul Sharma 提交者: Inki Dae

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: NRahul Sharma <rahul.sharma@samsung.com>
Acked-by: NSeung-Woo Kim <sw0312@samsung.com>
Signed-off-by: NInki Dae <inki.dae@samsung.com>
上级 23f340e0
...@@ -1864,7 +1864,6 @@ static struct s5p_hdmi_platform_data *drm_hdmi_dt_parse_pdata ...@@ -1864,7 +1864,6 @@ static struct s5p_hdmi_platform_data *drm_hdmi_dt_parse_pdata
{ {
struct device_node *np = dev->of_node; struct device_node *np = dev->of_node;
struct s5p_hdmi_platform_data *pd; struct s5p_hdmi_platform_data *pd;
enum of_gpio_flags flags;
u32 value; u32 value;
pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL); pd = devm_kzalloc(dev, sizeof(*pd), GFP_KERNEL);
...@@ -1878,7 +1877,7 @@ static struct s5p_hdmi_platform_data *drm_hdmi_dt_parse_pdata ...@@ -1878,7 +1877,7 @@ static struct s5p_hdmi_platform_data *drm_hdmi_dt_parse_pdata
goto err_data; 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; return pd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册