Commit 2e647124 authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman

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: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cea6aec4
...@@ -211,6 +211,9 @@ void mei_stop(struct mei_device *dev) ...@@ -211,6 +211,9 @@ void mei_stop(struct mei_device *dev)
mutex_unlock(&dev->device_lock); mutex_unlock(&dev->device_lock);
flush_scheduled_work(); flush_scheduled_work();
mei_watchdog_unregister(dev);
} }
......
...@@ -253,8 +253,6 @@ static void mei_remove(struct pci_dev *pdev) ...@@ -253,8 +253,6 @@ static void mei_remove(struct pci_dev *pdev)
mei_pdev = NULL; mei_pdev = NULL;
mei_watchdog_unregister(dev);
/* disable interrupts */ /* disable interrupts */
mei_disable_interrupts(dev); mei_disable_interrupts(dev);
......
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