From: Ian Molton Date: Sat, 8 Jul 2017 13:43:35 +0000 (+0100) Subject: Bluetooth: hci_nokia: remove duplicate call to pm_runtime_disable() X-Git-Tag: v4.14-rc1~130^2~405^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a529df8207b4dbc1a6ffd89d228afdcde042c97e;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Sebastian Reichel Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/hci_nokia.c b/drivers/bluetooth/hci_nokia.c index bc1f449..6dbb1f6 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)