]> git.karo-electronics.de Git - linux-beck.git/commitdiff
omap3: Free Beagle rev gpios when they are read, so others can read them later
authorTasslehoff Kjappfot <tasskjapp@gmail.com>
Tue, 31 May 2011 11:58:56 +0000 (04:58 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 1 Jun 2011 09:25:05 +0000 (02:25 -0700)
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>
arch/arm/mach-omap2/board-omap3beagle.c

index d64ed974286bc80ed2b7b51265be886e31f1df6e..6ef78d3c72f3d075869a94aebcc232e960a1669d 100644 (file)
@@ -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");