mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +00:00
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>
This commit is contained in:
parent
23f340e031
commit
5f916e2898
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user