mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
Bluetooth: btmrvl_sdio: 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>
This commit is contained in:
parent
689b5a8071
commit
ba6535e8b4
1 changed files with 3 additions and 1 deletions
|
|
@ -100,7 +100,9 @@ static int btmrvl_sdio_probe_of(struct device *dev,
|
|||
}
|
||||
|
||||
/* Configure wakeup (enabled by default) */
|
||||
device_init_wakeup(dev, true);
|
||||
ret = devm_device_init_wakeup(dev);
|
||||
if (ret)
|
||||
return dev_err_probe(dev, ret, "Failed to init wakeup\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue