net/nfp: unregister interrupt callback when closing
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Fri, 16 Sep 2016 11:11:14 +0000 (12:11 +0100)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
commit25853c71d33296f5edb8841b3cbb3f89c2d74742
treed716436a8611c0ea74417bb82681571268bd29b9
parent84e5752ea5dc222eb2ebbdf9b717c4c3a5f68a9c
net/nfp: unregister interrupt callback when closing

With an app using hotplug feature, when a device is unplugged without
unregistering makes the interrupt handling unstable.

Fixes: 6c53f87b3497 ("nfp: add link status interrupt")

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_net.c