Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1315045 > unrolled thread

[PATCH v1 1/1] mfd: intel-lpss: remove clock tree on error path

Started byAndy Shevchenko <andriy.shevchenko@linux.intel.com>
First post2016-01-22 15:50 +0100
Last post2016-01-25 13:00 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v1 1/1] mfd: intel-lpss: remove clock tree on error path Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2016-01-22 15:50 +0100
    Re: [PATCH v1 1/1] mfd: intel-lpss: remove clock tree on error path Mika Westerberg <mika.westerberg@linux.intel.com> - 2016-01-25 12:00 +0100
    Re: [PATCH v1 1/1] mfd: intel-lpss: remove clock tree on error path Lee Jones <lee.jones@linaro.org> - 2016-01-25 13:00 +0100

#1315045 — [PATCH v1 1/1] mfd: intel-lpss: remove clock tree on error path

FromAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Date2016-01-22 15:50 +0100
Subject[PATCH v1 1/1] mfd: intel-lpss: remove clock tree on error path
Message-ID<qTLce-5nI-1@gated-at.bofh.it>
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 <andriy.shevchenko@linux.intel.com>
---
 drivers/mfd/intel-lpss.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mfd/intel-lpss.c b/drivers/mfd/intel-lpss.c
index 2a7c6a7..807a3e3 100644
--- a/drivers/mfd/intel-lpss.c
+++ b/drivers/mfd/intel-lpss.c
@@ -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);
-- 
2.7.0.rc3

[toc] | [next] | [standalone]


#1316476

FromMika Westerberg <mika.westerberg@linux.intel.com>
Date2016-01-25 12:00 +0100
Message-ID<qUN2i-2Gb-13@gated-at.bofh.it>
In reply to#1315045
On Fri, Jan 22, 2016 at 04:48:46PM +0200, Andy Shevchenko wrote:
> 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 <andriy.shevchenko@linux.intel.com>

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>

[toc] | [prev] | [next] | [standalone]


#1316560

FromLee Jones <lee.jones@linaro.org>
Date2016-01-25 13:00 +0100
Message-ID<qUNYn-3kJ-29@gated-at.bofh.it>
In reply to#1315045
On Fri, 22 Jan 2016, Andy Shevchenko wrote:

> 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 <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/mfd/intel-lpss.c | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks.

> diff --git a/drivers/mfd/intel-lpss.c b/drivers/mfd/intel-lpss.c
> index 2a7c6a7..807a3e3 100644
> --- a/drivers/mfd/intel-lpss.c
> +++ b/drivers/mfd/intel-lpss.c
> @@ -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);

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web