Commit d7353b25 authored by Alessandro Zummo's avatar Alessandro Zummo Committed by Russell King

[ARM] 3342/1: NSLU2: Protect power button init routine with machine_is_nslu2()

Patch from Alessandro Zummo

The power button exit routine for the Linksys NSLU2 was not protected by
a machine_is_nslu2(). This patch fixes it.
Signed-off-by: default avatarRod Whitby <rod@whitby.id.au>
Signed-off-by: default avatarAlessandro Zummo <a.zummo@towertech.it>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent c27a2164
...@@ -77,6 +77,9 @@ static int __init nslu2_power_init(void) ...@@ -77,6 +77,9 @@ static int __init nslu2_power_init(void)
static void __exit nslu2_power_exit(void) static void __exit nslu2_power_exit(void)
{ {
if (!(machine_is_nslu2()))
return;
free_irq(NSLU2_RB_IRQ, NULL); free_irq(NSLU2_RB_IRQ, NULL);
free_irq(NSLU2_PB_IRQ, NULL); free_irq(NSLU2_PB_IRQ, NULL);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment