]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: intel-lpss: Remove clock tree on error path
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 22 Jan 2016 14:48:46 +0000 (16:48 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 9 Mar 2016 05:58:51 +0000 (12:58 +0700)
commitd3393a1f54aad4d2902484e26e60d6c849ae0267
tree7027173b8f8f19d22e241001b983a37209538466
parentfa8cfe28306d945f98f28ad99373382a0301c5e7
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: 0c7fdc53dd56 (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>
drivers/mfd/intel-lpss.c