From: Yoshinori Sato <ysato@users.sourceforge.jp>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Jason Cooper <jason@lakedaemon.net>,
Marc Zyngier <marc.zyngier@arm.com>,
uclinux-h8-devel@lists.sourceforge.jp,
linux-kernel@vger.kernel.org,
Daniel Lezcano <daniel.lezcano@linaro.org>
Subject: Re: [PATCH -next] irqchip: renesas-h8s: Replace ctrl_outw/ctrl_inw with writew/readw
Date: Fri, 18 Dec 2015 01:31:08 +0900 [thread overview]
Message-ID: <87bn9pnik3.wl-ysato@users.sourceforge.jp> (raw)
In-Reply-To: <1450240237-17187-1-git-send-email-linux@roeck-us.net>
On Wed, 16 Dec 2015 13:30:37 +0900,
Guenter Roeck wrote:
>
> Commit 13ae42a3b1c1 ("h8300: Rename ctlr_out/in[bwl] to
> raw_read/write[bwl]") changed the function names, but not all callers,
> resulting in
>
> drivers/irqchip/irq-renesas-h8s.c: In function ‘h8s_disable_irq’:
> drivers/irqchip/irq-renesas-h8s.c:43:9: error:
> implicit declaration of function ‘ctrl_inw’
> drivers/irqchip/irq-renesas-h8s.c:44:2: error:
> implicit declaration of function ‘ctrl_outw’
>
> Fixes: 13ae42a3b1c1 ("h8300: Rename ctlr_out/in[bwl] to raw_read/write[bwl]")
> Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Applied.
Thanks.
> ---
> drivers/irqchip/irq-renesas-h8s.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/irqchip/irq-renesas-h8s.c b/drivers/irqchip/irq-renesas-h8s.c
> index 8098ead1eb22..af8c6c61c824 100644
> --- a/drivers/irqchip/irq-renesas-h8s.c
> +++ b/drivers/irqchip/irq-renesas-h8s.c
> @@ -40,8 +40,8 @@ static void h8s_disable_irq(struct irq_data *data)
> addr = IPRA + ((ipr_table[irq - 16] & 0xf0) >> 3);
> pos = (ipr_table[irq - 16] & 0x0f) * 4;
> pri = ~(0x000f << pos);
> - pri &= ctrl_inw(addr);
> - ctrl_outw(pri, addr);
> + pri &= readw(addr);
> + writew(pri, addr);
> }
>
> static void h8s_enable_irq(struct irq_data *data)
> @@ -54,9 +54,9 @@ static void h8s_enable_irq(struct irq_data *data)
> addr = IPRA + ((ipr_table[irq - 16] & 0xf0) >> 3);
> pos = (ipr_table[irq - 16] & 0x0f) * 4;
> pri = ~(0x000f << pos);
> - pri &= ctrl_inw(addr);
> + pri &= readw(addr);
> pri |= 1 << pos;
> - ctrl_outw(pri, addr);
> + writew(pri, addr);
> }
>
> struct irq_chip h8s_irq_chip = {
> @@ -90,7 +90,7 @@ static int __init h8s_intc_of_init(struct device_node *intc,
> /* All interrupt priority is 0 (disable) */
> /* IPRA to IPRK */
> for (n = 0; n <= 'k' - 'a'; n++)
> - ctrl_outw(0x0000, IPRA + (n * 2));
> + writew(0x0000, IPRA + (n * 2));
>
> domain = irq_domain_add_linear(intc, NR_IRQS, &irq_ops, NULL);
> BUG_ON(!domain);
> --
> 2.1.4
>
--
Yoshinori Sato
<ysato@users.sourceforge.jp>
prev parent reply other threads:[~2015-12-17 16:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-16 4:30 [PATCH -next] irqchip: renesas-h8s: Replace ctrl_outw/ctrl_inw with writew/readw Guenter Roeck
2015-12-17 16:31 ` Yoshinori Sato [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=87bn9pnik3.wl-ysato@users.sourceforge.jp \
--to=ysato@users.sourceforge.jp \
--cc=daniel.lezcano@linaro.org \
--cc=jason@lakedaemon.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=marc.zyngier@arm.com \
--cc=tglx@linutronix.de \
--cc=uclinux-h8-devel@lists.sourceforge.jp \
/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