mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 12:20:52 +07:00
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: 4b45efe852
(mfd: Add support for Intel Sunrisepoint LPSS devices)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
dbc352b9f1
commit
84cb36cac5
@ -453,6 +453,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);
|
||||
|
Loading…
Reference in New Issue
Block a user