Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 575753e3 authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

OMAP: 4430SDP/Panda: use gpio_free_array to free HDMI gpios



Instead of freeing the GPIOs individually, use gpio_free_array().

Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
parent 0eaf9f52
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -614,8 +614,7 @@ static int sdp4430_panel_enable_hdmi(struct omap_dss_device *dssdev)

static void sdp4430_panel_disable_hdmi(struct omap_dss_device *dssdev)
{
	gpio_free(HDMI_GPIO_LS_OE);
	gpio_free(HDMI_GPIO_HPD);
	gpio_free_array(sdp4430_hdmi_gpios, ARRAY_SIZE(sdp4430_hdmi_gpios));
}

static struct nokia_dsi_panel_data dsi1_panel = {
+1 −2
Original line number Diff line number Diff line
@@ -497,8 +497,7 @@ static int omap4_panda_panel_enable_hdmi(struct omap_dss_device *dssdev)

static void omap4_panda_panel_disable_hdmi(struct omap_dss_device *dssdev)
{
	gpio_free(HDMI_GPIO_LS_OE);
	gpio_free(HDMI_GPIO_HPD);
	gpio_free_array(panda_hdmi_gpios, ARRAY_SIZE(panda_hdmi_gpios));
}

static struct omap_dss_device  omap4_panda_hdmi_device = {