aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-01-17 04:04:53 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-01-26 06:51:33 -0500
commit575753e3bea3b67eef8e454fb87f719e3f7da599 (patch)
treefeed15ccef9c5aa1070363cbe55c615b2584770e /arch
parent0eaf9f52e94f756147dbfe1faf1f77a02378dbf9 (diff)
OMAP: 4430SDP/Panda: use gpio_free_array to free HDMI gpios
Instead of freeing the GPIOs individually, use gpio_free_array(). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/board-4430sdp.c3
-rw-r--r--arch/arm/mach-omap2/board-omap4panda.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
index e1fe304ce361..7bbe23ee3e35 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -614,8 +614,7 @@ static int sdp4430_panel_enable_hdmi(struct omap_dss_device *dssdev)
614 614
615static void sdp4430_panel_disable_hdmi(struct omap_dss_device *dssdev) 615static void sdp4430_panel_disable_hdmi(struct omap_dss_device *dssdev)
616{ 616{
617 gpio_free(HDMI_GPIO_LS_OE); 617 gpio_free_array(sdp4430_hdmi_gpios, ARRAY_SIZE(sdp4430_hdmi_gpios));
618 gpio_free(HDMI_GPIO_HPD);
619} 618}
620 619
621static struct nokia_dsi_panel_data dsi1_panel = { 620static struct nokia_dsi_panel_data dsi1_panel = {
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
index 3e1c507fb01f..aeb9e88e0a2a 100644
--- a/arch/arm/mach-omap2/board-omap4panda.c
+++ b/arch/arm/mach-omap2/board-omap4panda.c
@@ -497,8 +497,7 @@ static int omap4_panda_panel_enable_hdmi(struct omap_dss_device *dssdev)
497 497
498static void omap4_panda_panel_disable_hdmi(struct omap_dss_device *dssdev) 498static void omap4_panda_panel_disable_hdmi(struct omap_dss_device *dssdev)
499{ 499{
500 gpio_free(HDMI_GPIO_LS_OE); 500 gpio_free_array(panda_hdmi_gpios, ARRAY_SIZE(panda_hdmi_gpios));
501 gpio_free(HDMI_GPIO_HPD);
502} 501}
503 502
504static struct omap_dss_device omap4_panda_hdmi_device = { 503static struct omap_dss_device omap4_panda_hdmi_device = {