Skip to content

Commit

Permalink
[ARM] 3353/1: NAS100d: protect nas100d_power_exit() with machine_is_n…
Browse files Browse the repository at this point in the history
…as100d()

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>
  • Loading branch information
Alessandro Zummo authored and Russell King committed Mar 7, 2006
1 parent 6a0e243 commit 744bfe4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-ixp4xx/nas100d-power.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ static int __init nas100d_power_init(void)

static void __exit nas100d_power_exit(void)
{
if (!(machine_is_nas100d()))
return;

free_irq(NAS100D_RB_IRQ, NULL);
}

Expand Down

0 comments on commit 744bfe4

Please sign in to comment.