Skip to content

Commit

Permalink
Bluetooth: hci_nokia: remove duplicate call to pm_runtime_disable()
Browse files Browse the repository at this point in the history
pm_runtime_disable() is called in the _close() handler.

Since we call the _close() handler on remove, there is no need to
call pm_runtime_disable() a second time.

Signed-off-by: Ian Molton <ian@mnementh.co.uk>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Ian Molton authored and Marcel Holtmann committed Jul 20, 2017
1 parent ca2eae7 commit a529df8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/bluetooth/hci_nokia.c
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,6 @@ static void nokia_bluetooth_serdev_remove(struct serdev_device *serdev)
cancel_work_sync(&hu->write_work);

hu->proto->close(hu);

pm_runtime_disable(&btdev->serdev->dev);
}

static int nokia_bluetooth_runtime_suspend(struct device *dev)
Expand Down

0 comments on commit a529df8

Please sign in to comment.