]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0058-OMAP-4430SDP-Panda-use-gpio_free_array-to-free-HDMI-.patch
linux-ti335x-psp 3.2: update to v3.2.11
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.10 / 0058-OMAP-4430SDP-Panda-use-gpio_free_array-to-free-HDMI-.patch
1 From c5d0ae10543e28dccdee30ee8b10547c75b78f87 Mon Sep 17 00:00:00 2001
2 From: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 Date: Tue, 17 Jan 2012 11:04:53 +0200
4 Subject: [PATCH 58/95] OMAP: 4430SDP/Panda: use gpio_free_array to free HDMI
5  gpios
7 commit 575753e3bea3b67eef8e454fb87f719e3f7da599 upstream.
9 Instead of freeing the GPIOs individually, use gpio_free_array().
11 Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
12 Acked-by: Tony Lindgren <tony@atomide.com>
13 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
14 ---
15  arch/arm/mach-omap2/board-4430sdp.c    |    3 +--
16  arch/arm/mach-omap2/board-omap4panda.c |    3 +--
17  2 files changed, 2 insertions(+), 4 deletions(-)
19 diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
20 index e8ff4cf..4996323 100644
21 --- a/arch/arm/mach-omap2/board-4430sdp.c
22 +++ b/arch/arm/mach-omap2/board-4430sdp.c
23 @@ -635,8 +635,7 @@ static int sdp4430_panel_enable_hdmi(struct omap_dss_device *dssdev)
24  
25  static void sdp4430_panel_disable_hdmi(struct omap_dss_device *dssdev)
26  {
27 -       gpio_free(HDMI_GPIO_LS_OE);
28 -       gpio_free(HDMI_GPIO_HPD);
29 +       gpio_free_array(sdp4430_hdmi_gpios, ARRAY_SIZE(sdp4430_hdmi_gpios));
30  }
31  
32  static struct nokia_dsi_panel_data dsi1_panel = {
33 diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
34 index ea45f58..ac9a8a9 100644
35 --- a/arch/arm/mach-omap2/board-omap4panda.c
36 +++ b/arch/arm/mach-omap2/board-omap4panda.c
37 @@ -446,8 +446,7 @@ static int omap4_panda_panel_enable_hdmi(struct omap_dss_device *dssdev)
38  
39  static void omap4_panda_panel_disable_hdmi(struct omap_dss_device *dssdev)
40  {
41 -       gpio_free(HDMI_GPIO_LS_OE);
42 -       gpio_free(HDMI_GPIO_HPD);
43 +       gpio_free_array(panda_hdmi_gpios, ARRAY_SIZE(panda_hdmi_gpios));
44  }
45  
46  static struct omap_dss_device  omap4_panda_hdmi_device = {
47 -- 
48 1.7.9.4