Commit ee3e4209 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Luiz Augusto von Dentz
Browse files

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent ba6535e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");