summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorIan Molton <ian@mnementh.co.uk>2017-07-08 14:43:35 +0100
committerMarcel Holtmann <marcel@holtmann.org>2017-07-20 11:18:36 +0200
commita529df8207b4dbc1a6ffd89d228afdcde042c97e (patch)
tree5a3c1b1c1d20384c88de221908a5295c98b0f60d /drivers/bluetooth
parentca2eae7d25a1d3c7c675808fa907188e6a099537 (diff)
downloadlinux-a529df8207b4dbc1a6ffd89d228afdcde042c97e.tar.bz2
Bluetooth: hci_nokia: remove duplicate call to pm_runtime_disable()
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>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/hci_nokia.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_nokia.c b/drivers/bluetooth/hci_nokia.c
index bc1f4496583e..6dbb1f6ff6bd 100644
--- a/drivers/bluetooth/hci_nokia.c
+++ b/drivers/bluetooth/hci_nokia.c
@@ -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)