mei: unregister watchdog from mei_stop function
we need to unregister watchdog device both in suspend and remove as the registration is recreated on reset Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
cea6aec451
commit
2e64712450
|
@ -211,6 +211,9 @@ void mei_stop(struct mei_device *dev)
|
|||
mutex_unlock(&dev->device_lock);
|
||||
|
||||
flush_scheduled_work();
|
||||
|
||||
mei_watchdog_unregister(dev);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -253,8 +253,6 @@ static void mei_remove(struct pci_dev *pdev)
|
|||
|
||||
mei_pdev = NULL;
|
||||
|
||||
mei_watchdog_unregister(dev);
|
||||
|
||||
/* disable interrupts */
|
||||
mei_disable_interrupts(dev);
|
||||
|
||||
|
|
Loading…
Reference in New Issue