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

Commit 5e2ffc30 authored by Tasslehoff Kjappfot's avatar Tasslehoff Kjappfot Committed by Tony Lindgren
Browse files

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: default avatarTasslehoff Kjappfot <tasskjapp@gmail.com>
[tony@atomide.com: updated comments]
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent e2a346a2
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -106,6 +106,9 @@ static void __init omap3_beagle_init_rev(void)
	beagle_rev = gpio_get_value(171) | (gpio_get_value(172) << 1)
	beagle_rev = gpio_get_value(171) | (gpio_get_value(172) << 1)
			| (gpio_get_value(173) << 2);
			| (gpio_get_value(173) << 2);


	gpio_free_array(omap3_beagle_rev_gpios,
			ARRAY_SIZE(omap3_beagle_rev_gpios));

	switch (beagle_rev) {
	switch (beagle_rev) {
	case 7:
	case 7:
		printk(KERN_INFO "OMAP3 Beagle Rev: Ax/Bx\n");
		printk(KERN_INFO "OMAP3 Beagle Rev: Ax/Bx\n");