summaryrefslogtreecommitdiff
path: root/packages/linux/ixp4xx-kernel/2.6.15/81-nslu2-power.patch
blob: 7587058cb718fae7796f920d14a53555df649358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- linux-2.6.15/arch/arm/mach-ixp4xx/nslu2-power.c~	2006-01-03 13:51:10.000000000 +1030
+++ linux-2.6.15/arch/arm/mach-ixp4xx/nslu2-power.c	2006-01-15 03:57:59.000000000 +1030
@@ -80,6 +80,9 @@
 
 static void __exit nslu2_power_exit(void)
 {
+	if (!(machine_is_nslu2()))
+		return;
+
 	free_irq(NSLU2_RB_IRQ, NULL);
 	free_irq(NSLU2_PB_IRQ, NULL);
 }