aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2025-04-06 22:10:17 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2025-05-21 10:27:36 -0400
commitee3e4209e66d44180a41d5ca7271361a2a28fccf (patch)
tree18bbef65199502f546177e0257eeeffe399a2cc2 /drivers/bluetooth
parentBluetooth: btmrvl_sdio: Fix wakeup source leaks on device unbind (diff)
downloadlinux-rng-ee3e4209e66d44180a41d5ca7271361a2a28fccf.tar.xz
linux-rng-ee3e4209e66d44180a41d5ca7271361a2a28fccf.zip
Bluetooth: btmtksdio: Fix wakeup source leaks on device unbind
Device can be unbound or probe can fail, so driver must also release memory for the wakeup source. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/btmtksdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/btmtksdio.c b/drivers/bluetooth/btmtksdio.c
index 1d26207b2ba7..c16a3518b8ff 100644
--- a/drivers/bluetooth/btmtksdio.c
+++ b/drivers/bluetooth/btmtksdio.c
@@ -1414,7 +1414,7 @@ static int btmtksdio_probe(struct sdio_func *func,
*/
pm_runtime_put_noidle(bdev->dev);
- err = device_init_wakeup(bdev->dev, true);
+ err = devm_device_init_wakeup(bdev->dev);
if (err)
bt_dev_err(hdev, "failed to initialize device wakeup");