From: Yong Zhang <yong.zhang0@gmail.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
Haojian Zhuang <haojian.zhuang@marvell.com>,
Olof Johansson <olof@lixom.net>, Arnd Bergmann <arnd@arndb.de>,
linux-arm-kernel@lists.infradead.org
Subject: Re: linux-next: manual merge of the akpm tree with the arm-soc tree
Date: Wed, 29 Feb 2012 14:32:17 +0800 [thread overview]
Message-ID: <20120229063217.GA13386@zhy> (raw)
In-Reply-To: <20120229172127.7b430cecc7ab2350d4e4a1b8@canb.auug.org.au>
On Wed, Feb 29, 2012 at 05:21:27PM +1100, Stephen Rothwell wrote:
> Hi Andrew,
>
> Today's linux-next merge of the akpm tree got a conflict in
> drivers/rtc/rtc-sa1100.c between commit 3888c09074db ("rtc: sa1100:
> declare irq in resource") from the arm-soc tree and commit "drivers/rtc:
> remove IRQF_DISABLED" from the akpm tree.
>
> I fixed it up (see below) and can carry the fix as necessary.
Your fix looks good to me.
Thanks,
Yong
> --
> Cheers,
> Stephen Rothwell sfr@canb.auug.org.au
>
> diff --cc drivers/rtc/rtc-sa1100.c
> index c105774,e70b4e6..0000000
> --- a/drivers/rtc/rtc-sa1100.c
> +++ b/drivers/rtc/rtc-sa1100.c
> @@@ -102,23 -156,20 +102,23 @@@ static irqreturn_t sa1100_rtc_interrupt
>
> static int sa1100_rtc_open(struct device *dev)
> {
> + struct sa1100_rtc *info = dev_get_drvdata(dev);
> + struct rtc_device *rtc = info->rtc;
> int ret;
> - struct platform_device *plat_dev = to_platform_device(dev);
> - struct rtc_device *rtc = platform_get_drvdata(plat_dev);
>
> - ret = request_irq(IRQ_RTC1Hz, sa1100_rtc_interrupt, 0,
> + ret = clk_prepare_enable(info->clk);
> + if (ret)
> + goto fail_clk;
> - ret = request_irq(info->irq_1hz, sa1100_rtc_interrupt, IRQF_DISABLED,
> ++ ret = request_irq(info->irq_1hz, sa1100_rtc_interrupt, 0,
> "rtc 1Hz", dev);
> if (ret) {
> - dev_err(dev, "IRQ %d already in use.\n", IRQ_RTC1Hz);
> + dev_err(dev, "IRQ %d already in use.\n", info->irq_1hz);
> goto fail_ui;
> }
> - ret = request_irq(info->irq_alarm, sa1100_rtc_interrupt, IRQF_DISABLED,
> - ret = request_irq(IRQ_RTCAlrm, sa1100_rtc_interrupt, 0,
> ++ ret = request_irq(info->irq_alarm, sa1100_rtc_interrupt, 0,
> "rtc Alrm", dev);
> if (ret) {
> - dev_err(dev, "IRQ %d already in use.\n", IRQ_RTCAlrm);
> + dev_err(dev, "IRQ %d already in use.\n", info->irq_alarm);
> goto fail_ai;
> }
> rtc->max_user_freq = RTC_FREQ;
--
Only stand for myself
WARNING: multiple messages have this Message-ID (diff)
From: yong.zhang0@gmail.com (Yong Zhang)
To: linux-arm-kernel@lists.infradead.org
Subject: linux-next: manual merge of the akpm tree with the arm-soc tree
Date: Wed, 29 Feb 2012 14:32:17 +0800 [thread overview]
Message-ID: <20120229063217.GA13386@zhy> (raw)
In-Reply-To: <20120229172127.7b430cecc7ab2350d4e4a1b8@canb.auug.org.au>
On Wed, Feb 29, 2012 at 05:21:27PM +1100, Stephen Rothwell wrote:
> Hi Andrew,
>
> Today's linux-next merge of the akpm tree got a conflict in
> drivers/rtc/rtc-sa1100.c between commit 3888c09074db ("rtc: sa1100:
> declare irq in resource") from the arm-soc tree and commit "drivers/rtc:
> remove IRQF_DISABLED" from the akpm tree.
>
> I fixed it up (see below) and can carry the fix as necessary.
Your fix looks good to me.
Thanks,
Yong
> --
> Cheers,
> Stephen Rothwell sfr at canb.auug.org.au
>
> diff --cc drivers/rtc/rtc-sa1100.c
> index c105774,e70b4e6..0000000
> --- a/drivers/rtc/rtc-sa1100.c
> +++ b/drivers/rtc/rtc-sa1100.c
> @@@ -102,23 -156,20 +102,23 @@@ static irqreturn_t sa1100_rtc_interrupt
>
> static int sa1100_rtc_open(struct device *dev)
> {
> + struct sa1100_rtc *info = dev_get_drvdata(dev);
> + struct rtc_device *rtc = info->rtc;
> int ret;
> - struct platform_device *plat_dev = to_platform_device(dev);
> - struct rtc_device *rtc = platform_get_drvdata(plat_dev);
>
> - ret = request_irq(IRQ_RTC1Hz, sa1100_rtc_interrupt, 0,
> + ret = clk_prepare_enable(info->clk);
> + if (ret)
> + goto fail_clk;
> - ret = request_irq(info->irq_1hz, sa1100_rtc_interrupt, IRQF_DISABLED,
> ++ ret = request_irq(info->irq_1hz, sa1100_rtc_interrupt, 0,
> "rtc 1Hz", dev);
> if (ret) {
> - dev_err(dev, "IRQ %d already in use.\n", IRQ_RTC1Hz);
> + dev_err(dev, "IRQ %d already in use.\n", info->irq_1hz);
> goto fail_ui;
> }
> - ret = request_irq(info->irq_alarm, sa1100_rtc_interrupt, IRQF_DISABLED,
> - ret = request_irq(IRQ_RTCAlrm, sa1100_rtc_interrupt, 0,
> ++ ret = request_irq(info->irq_alarm, sa1100_rtc_interrupt, 0,
> "rtc Alrm", dev);
> if (ret) {
> - dev_err(dev, "IRQ %d already in use.\n", IRQ_RTCAlrm);
> + dev_err(dev, "IRQ %d already in use.\n", info->irq_alarm);
> goto fail_ai;
> }
> rtc->max_user_freq = RTC_FREQ;
--
Only stand for myself
next prev parent reply other threads:[~2012-02-29 6:32 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-29 6:21 linux-next: manual merge of the akpm tree with the arm-soc tree Stephen Rothwell
2012-02-29 6:21 ` Stephen Rothwell
2012-02-29 6:21 ` Stephen Rothwell
2012-02-29 6:32 ` Yong Zhang [this message]
2012-02-29 6:32 ` Yong Zhang
2012-02-29 6:54 ` Haojian Zhuang
2012-02-29 6:54 ` Haojian Zhuang
2012-02-29 7:11 ` Stephen Rothwell
2012-02-29 7:11 ` Stephen Rothwell
-- strict thread matches above, loose matches on Subject: below --
2012-05-14 9:24 Stephen Rothwell
2012-05-14 9:24 ` Stephen Rothwell
2012-05-14 9:24 ` Stephen Rothwell
2012-05-14 21:57 ` Turquette, Mike
2012-05-14 21:57 ` Turquette, Mike
2012-05-17 7:18 Stephen Rothwell
2012-05-17 7:18 ` Stephen Rothwell
2012-05-17 7:18 ` Stephen Rothwell
2013-03-12 3:47 Stephen Rothwell
2013-03-12 3:47 ` Stephen Rothwell
2013-03-12 3:47 ` Stephen Rothwell
2013-03-12 6:25 ` Andrew Lunn
2013-03-12 6:25 ` Andrew Lunn
2013-03-12 11:12 ` Jason Cooper
2013-03-12 11:12 ` Jason Cooper
2013-03-12 11:37 ` Olof Johansson
2013-03-12 11:37 ` Olof Johansson
2013-03-12 11:53 ` Jason Cooper
2013-03-12 11:53 ` Jason Cooper
2013-03-12 12:48 ` Arnd Bergmann
2013-03-12 12:48 ` Arnd Bergmann
2013-03-12 13:32 ` Jason Cooper
2013-03-12 13:32 ` Jason Cooper
2013-03-12 20:20 ` Andrew Morton
2013-03-12 20:20 ` Andrew Morton
2013-06-21 7:33 Stephen Rothwell
2013-06-21 7:33 ` Stephen Rothwell
2013-06-21 7:33 ` Stephen Rothwell
2013-06-21 7:36 Stephen Rothwell
2013-06-21 7:36 ` Stephen Rothwell
2013-06-21 7:36 ` Stephen Rothwell
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=20120229063217.GA13386@zhy \
--to=yong.zhang0@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=haojian.zhuang@marvell.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=olof@lixom.net \
--cc=sfr@canb.auug.org.au \
/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.