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:
Tomas Winkler 2013-03-27 16:58:26 +02:00 committed by Greg Kroah-Hartman
parent cea6aec451
commit 2e64712450
2 changed files with 3 additions and 2 deletions

View File

@ -211,6 +211,9 @@ void mei_stop(struct mei_device *dev)
mutex_unlock(&dev->device_lock);
flush_scheduled_work();
mei_watchdog_unregister(dev);
}

View File

@ -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);