Skip to content

Commit 01a7e8e

Browse files
khfengstorulf
authored andcommitted
memstick: rtsx_usb_ms: Add missing pm_runtime_disable() in probe function
If the probe fails, we should use pm_runtime_disable() to balance pm_runtime_enable(). Add missing pm_runtime_disable() for rtsx_usb_ms. Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com> Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 4dad599 commit 01a7e8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/memstick/host/rtsx_usb_ms.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,7 @@ static int rtsx_usb_ms_drv_probe(struct platform_device *pdev)
770770
return 0;
771771
err_out:
772772
memstick_free_host(msh);
773+
pm_runtime_disable(ms_dev(host));
773774
return err;
774775
}
775776

0 commit comments

Comments
 (0)