Message ID | 8a0a4db81b6aede029701cd4db734aaf9bd37ee7.1637360076.git.objelf@gmail.com |
---|---|
State | New |
Headers | show |
Series | [1/4] Bluetooth: btmtksdio: drop the unnecessary variable created | expand |
diff --git a/drivers/bluetooth/btmtksdio.c b/drivers/bluetooth/btmtksdio.c index 4c46c62e4623..cae1fcd15512 100644 --- a/drivers/bluetooth/btmtksdio.c +++ b/drivers/bluetooth/btmtksdio.c @@ -1040,6 +1040,8 @@ static int btmtksdio_runtime_suspend(struct device *dev) if (!test_bit(HCI_RUNNING, &bdev->hdev->flags)) return 0; + sdio_set_host_pm_flags(func, MMC_PM_KEEP_POWER); + sdio_claim_host(bdev->func); sdio_writel(bdev->func, C_FW_OWN_REQ_SET, MTK_REG_CHLPCR, &err);