mfd: intel-lpss: remove clock tree on error path
Andy Shevchenko
reviewerPATCH 1/1 mfd: intel-lpss: remove clock tree on error path
We forgot to remove the clock tree if something goes wrong in ->probe(). Add a call to intel_lpss_unregister_clock() on error path in ->probe() to fix the potential issue.
Fixes 4b45efe85263 (mfd: Add support for Intel Sunrisepoint LPSS devices)
Signed-off-by Andy Shevchenko <[email protected]>
--- drivers/mfd/intel-lpss.c | 1 + 1 file changed, 1 insertion(+)
drivers/mfd/intel-lpss.c +1 -0
@@ -455,6 +455,7 @@ int intel_lpss_probe(struct device *dev, err_remove_ltr:intel_lpss_debugfs_remove (lpss);intel_lpss_ltr_hide (lpss); +intel_lpss_unregister_clock (lpss); err_clk_register:ida_simple_remove (&intel_lpss_devid_ida, lpss->devid);
Signature · 1 line
2.7.0.rc3
Quoted 6 lines · Andy Shevchenko
We forgot to remove the clock tree if something goes wrong in ->probe(). Add a call to
intel_lpss_unregister_clock()on error path in ->probe() to fix the potential issue.Fixes 4b45efe85263 (mfd: Add support for Intel Sunrisepoint LPSS devices)Signed-off-by Andy Shevchenko <[email protected]>
Acked-by Mika Westerberg <[email protected]>
Lee Jones
AppliedQuoted 9 lines · Andy Shevchenko
We forgot to remove the clock tree if something goes wrong in ->probe(). Add a call to
intel_lpss_unregister_clock()on error path in ->probe() to fix the potential issue.Fixes 4b45efe85263 (mfd: Add support for Intel Sunrisepoint LPSS devices)Signed-off-by Andy Shevchenko <[email protected]>--- drivers/mfd/intel-lpss.c | 1 + 1 file changed, 1 insertion(+)
Applied, thanks.
Quoted 12 lines
drivers/mfd/intel-lpss.c +1
-0@@ -455,6 +455,7 @@ int intel_lpss_probe(struct device *dev, err_remove_ltr:intel_lpss_debugfs_remove (lpss);intel_lpss_ltr_hide (lpss); +intel_lpss_unregister_clock (lpss); err_clk_register:ida_simple_remove (&intel_lpss_devid_ida, lpss->devid);
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog