mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Tested-by: Oleksandr Natalenko <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
This commit is contained in:
parent
4dad599b8b
commit
01a7e8e066
1 changed files with 1 additions and 0 deletions
|
|
@ -770,6 +770,7 @@ static int rtsx_usb_ms_drv_probe(struct platform_device *pdev)
|
|||
return 0;
|
||||
err_out:
|
||||
memstick_free_host(msh);
|
||||
pm_runtime_disable(ms_dev(host));
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue