Commit f447cc06 authored by Alessandro Rubini's avatar Alessandro Rubini

wr_pstats: fix for a potential bug after unloading

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 2c6d94ee
......@@ -312,6 +312,8 @@ static void __exit pstats_exit(void)
pstats_irq_disable(PSTATS_ALL_MSK);
free_irq(WRVIC_BASE_IRQ+WR_PSTATS_IRQ, &pstats_dev);
wr_nic_pstats_callback = NULL;
iounmap(pstats_dev.regs);
unregister_sysctl_table(pstats_header);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment