Skip to content

Commit

Permalink
mei: unregister watchdog from mei_stop function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Mar 29, 2013
1 parent cea6aec commit 2e64712
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions drivers/misc/mei/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ void mei_stop(struct mei_device *dev)
mutex_unlock(&dev->device_lock);

flush_scheduled_work();

mei_watchdog_unregister(dev);

}


Expand Down
2 changes: 0 additions & 2 deletions drivers/misc/mei/pci-me.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2e64712

Please sign in to comment.