Skip to content
Snippets Groups Projects
Commit 744bfe4c authored by Alessandro Zummo's avatar Alessandro Zummo Committed by Russell King
Browse files

[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: 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 6a0e2430
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment