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

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