From: Lee Jones <lee.jones@linaro.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-kernel@vger.kernel.org,
Mika Westerberg <mika.westerberg@linux.intel.com>
Subject: Re: [PATCH v1 1/1] mfd: intel-lpss: remove clock tree on error path
Date: Mon, 25 Jan 2016 11:56:37 +0000 [thread overview]
Message-ID: <20160125115637.GD3368@x1> (raw)
In-Reply-To: <1453474126-128047-1-git-send-email-andriy.shevchenko@linux.intel.com>
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
prev parent reply other threads:[~2016-01-25 11:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-22 14:48 [PATCH v1 1/1] mfd: intel-lpss: remove clock tree on error path Andy Shevchenko
2016-01-25 10:57 ` Mika Westerberg
2016-01-25 11:56 ` Lee Jones [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160125115637.GD3368@x1 \
--to=lee.jones@linaro.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox