Commit 8cc83813 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman

mfd: intel-lpss: Remove clock tree on error path

commit 84cb36ca upstream.

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: 4b45efe8 (mfd: Add support for Intel Sunrisepoint LPSS devices)
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f94ad404
...@@ -445,6 +445,7 @@ int intel_lpss_probe(struct device *dev, ...@@ -445,6 +445,7 @@ int intel_lpss_probe(struct device *dev,
err_remove_ltr: err_remove_ltr:
intel_lpss_debugfs_remove(lpss); intel_lpss_debugfs_remove(lpss);
intel_lpss_ltr_hide(lpss); intel_lpss_ltr_hide(lpss);
intel_lpss_unregister_clock(lpss);
err_clk_register: err_clk_register:
ida_simple_remove(&intel_lpss_devid_ida, lpss->devid); ida_simple_remove(&intel_lpss_devid_ida, lpss->devid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment