summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-omap3beagle.c
diff options
context:
space:
mode:
authorTasslehoff Kjappfot <tasskjapp@gmail.com>2011-05-31 13:58:56 +0200
committerTony Lindgren <tony@atomide.com>2011-06-01 11:25:05 +0200
commit5e2ffc308a3aa44a318452fccae7b23a029eeeb8 (patch)
tree1dec9a5fe3843a771ab3a4e27f241409a2060f46 /arch/arm/mach-omap2/board-omap3beagle.c
parentarm: omap3: beagle: Ensure msecure is mux'd to be able to set the RTC (diff)
downloadlinux-5e2ffc308a3aa44a318452fccae7b23a029eeeb8.tar.xz
linux-5e2ffc308a3aa44a318452fccae7b23a029eeeb8.zip
omap3: Free Beagle rev gpios when they are read, so others can read them later
Free Beagle rev gpios when they are read, so others can read them later Signed-off-by: Tasslehoff Kjappfot <tasskjapp@gmail.com> [tony@atomide.com: updated comments] Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3beagle.c')
-rw-r--r--arch/arm/mach-omap2/board-omap3beagle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
index d64ed974286b..6ef78d3c72f3 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -106,6 +106,9 @@ static void __init omap3_beagle_init_rev(void)
beagle_rev = gpio_get_value(171) | (gpio_get_value(172) << 1)
| (gpio_get_value(173) << 2);
+ gpio_free_array(omap3_beagle_rev_gpios,
+ ARRAY_SIZE(omap3_beagle_rev_gpios));
+
switch (beagle_rev) {
case 7:
printk(KERN_INFO "OMAP3 Beagle Rev: Ax/Bx\n");