From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] pinctrl/: at91: fix warmings
Date: Mon, 29 Oct 2012 09:57:16 +0000 [thread overview]
Message-ID: <20121029095716.GF21164@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1351360392-8669-1-git-send-email-plagnioj@jcrosoft.com>
On Sat, Oct 27, 2012 at 07:53:11PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> /opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c: In function 'at91_pinctrl_probe_dt':
> /opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c:952:12: warning: assignment discards qualifiers from pointer target type
> /opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c: In function 'at91_gpio_probe':
> /opt/work/linux-2.6/drivers/pinctrl/pinctrl-at91.c:1517:17: warning: assignment discards qualifiers from pointer target type
>
> Cc: Linus Walleij <linus.walleij@linaro.org>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ---
> drivers/pinctrl/pinctrl-at91.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c
> index 0679643..6485d7e 100644
> --- a/drivers/pinctrl/pinctrl-at91.c
> +++ b/drivers/pinctrl/pinctrl-at91.c
> @@ -949,7 +949,7 @@ static int __devinit at91_pinctrl_probe_dt(struct platform_device *pdev,
> return -ENODEV;
>
> info->dev = &pdev->dev;
> - info->ops =
> + info->ops = (struct at91_pinctrl_mux_ops*)
> of_match_device(at91_pinctrl_of_match, &pdev->dev)->data;
Fix the type on info->ops instead, it probably wants to be const.
prev parent reply other threads:[~2012-10-29 9:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-27 17:53 [PATCH 1/2] pinctrl/: at91: fix warmings Jean-Christophe PLAGNIOL-VILLARD
2012-10-27 17:53 ` [PATCH 2/2] MAINTAINERS: add pinctrl atmel at91 entry Jean-Christophe PLAGNIOL-VILLARD
2012-10-28 19:09 ` Linus Walleij
2012-10-29 10:04 ` Nicolas Ferre
2012-10-28 19:02 ` [PATCH 1/2] pinctrl/: at91: fix warmings Linus Walleij
2012-10-29 9:57 ` Russell King - ARM Linux [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=20121029095716.GF21164@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).