Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a529df82 authored by Ian Molton's avatar Ian Molton Committed by Marcel Holtmann
Browse files

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: default avatarIan Molton <ian@mnementh.co.uk>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent ca2eae7d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)