summaryrefslogtreecommitdiff
path: root/packages/linux/ixp4xx-kernel/2.6.16/81-nslu2-power.patch
blob: 0937c76181260f26d9dc25b6a875c8708b04d076 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3342/1

 arch/arm/mach-ixp4xx/nslu2-power.c |    3 +++
 1 file changed, 3 insertions(+)

--- linux-nslu2.orig/arch/arm/mach-ixp4xx/nslu2-power.c	2006-02-06 20:37:01.000000000 +0100
+++ linux-nslu2/arch/arm/mach-ixp4xx/nslu2-power.c	2006-02-06 22:34:46.000000000 +0100
@@ -77,6 +77,9 @@ static int __init nslu2_power_init(void)
 
 static void __exit nslu2_power_exit(void)
 {
+	if (!(machine_is_nslu2()))
+		return;
+
 	free_irq(NSLU2_RB_IRQ, NULL);
 	free_irq(NSLU2_PB_IRQ, NULL);
 }