Bluetooth: hci_nokia: remove duplicate call to pm_runtime_disable()
authorIan Molton <ian@mnementh.co.uk>
Sat, 8 Jul 2017 13:43:35 +0000 (14:43 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 20 Jul 2017 09:18:36 +0000 (11:18 +0200)
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>
drivers/bluetooth/hci_nokia.c

index bc1f4496583e46cdc15b6c85bf7c18ff0a1a217d..6dbb1f6ff6bdc045095cf4fc6cdd6029fd02f080 100644 (file)
@@ -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)