浏览代码

[ARM] 3353/1: NAS100d: protect nas100d_power_exit() with machine_is_nas100d()

Patch from Alessandro Zummo

nas100d_power_exit(void) gets some protection
to avoid freeing an irq when it is not appropriate to do so.

Signed-off-by: Rod Whitby <rod@whitby.id.au>
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Alessandro Zummo 20 年之前
父节点
当前提交
744bfe4c25
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      arch/arm/mach-ixp4xx/nas100d-power.c

+ 3 - 0
arch/arm/mach-ixp4xx/nas100d-power.c

@@ -56,6 +56,9 @@ static int __init nas100d_power_init(void)
 
 
 static void __exit nas100d_power_exit(void)
 static void __exit nas100d_power_exit(void)
 {
 {
+	if (!(machine_is_nas100d()))
+		return;
+
 	free_irq(NAS100D_RB_IRQ, NULL);
 	free_irq(NAS100D_RB_IRQ, NULL);
 }
 }