From: Patrice Chotard <patrice.chotard@st.com>
To: Pramod Gurav <pramod.gurav@smartplayin.com>,
<linux-kernel@vger.kernel.org>
Cc: Maxime Coquelin <maxime.coquelin@st.com>,
Linus Walleij <linus.walleij@linaro.org>,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Subject: Re: [PATCH] pinctrl: st: Fix Sparse error
Date: Mon, 29 Sep 2014 15:47:18 +0200 [thread overview]
Message-ID: <542962E6.1000005@st.com> (raw)
In-Reply-To: <1411998499-20300-1-git-send-email-pramod.gurav@smartplayin.com>
Hi Pramod
On 09/29/2014 03:48 PM, Pramod Gurav wrote:
> This change fixes below sparse error,
> drivers/pinctrl/pinctrl-st.c:1515:31: error: incompatible types for operation (>)
> drivers/pinctrl/pinctrl-st.c:1515:31: left side has type void [noderef] <asn:2>*irqmux_base
> drivers/pinctrl/pinctrl-st.c:1515:31: right side has type int
>
> The fix is done by removing a check on info->irqmux_base as
> info->irqmux_base has already been checked for error when allocating it.
> Hence there is no need to redo the check.
>
> Cc: Maxime Coquelin <maxime.coquelin@st.com>
> Cc: Patrice Chotard <patrice.chotard@st.com>
> CC: Linus Walleij <linus.walleij@linaro.org>
> Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
> ---
> drivers/pinctrl/pinctrl-st.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c
> index 5475374..ddeaeda 100644
> --- a/drivers/pinctrl/pinctrl-st.c
> +++ b/drivers/pinctrl/pinctrl-st.c
> @@ -1512,7 +1512,7 @@ static int st_gpiolib_register_bank(struct st_pinctrl *info,
> gpio_irq, st_gpio_irq_handler);
> }
>
> - if (info->irqmux_base > 0 || gpio_irq > 0) {
> + if (gpio_irq > 0) {
> err = gpiochip_irqchip_add(&bank->gpio_chip, &st_gpio_irqchip,
> 0, handle_simple_irq,
> IRQ_TYPE_LEVEL_LOW);
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Thanks
next prev parent reply other threads:[~2014-09-29 13:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-29 13:48 [PATCH] pinctrl: st: Fix Sparse error Pramod Gurav
2014-09-29 13:47 ` Patrice Chotard [this message]
2014-09-29 14:46 ` Srinivas Kandagatla
2014-09-29 15:05 ` Pramod Gurav
2014-09-29 15:38 ` Srinivas Kandagatla
2014-09-29 16:10 ` Pramod Gurav
2014-09-29 15:09 ` Daniel Thompson
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=542962E6.1000005@st.com \
--to=patrice.chotard@st.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maxime.coquelin@st.com \
--cc=pramod.gurav@smartplayin.com \
--cc=srinivas.kandagatla@linaro.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.