public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Qing Xu <qingx@marvell.com>
To: Qing Xu <qingx@marvell.com>
Cc: "dmitry.torokhov@gmail.com" <dmitry.torokhov@gmail.com>,
	Qiao Zhou <zhouqiao@marvell.com>,
	"sameo@linux.intel.com" <sameo@linux.intel.com>,
	Chao Xie <cxie4@marvell.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/4] onkey: 88pm80x: update irq base
Date: Wed, 12 Dec 2012 14:26:26 +0800	[thread overview]
Message-ID: <50C82392.80607@marvell.com> (raw)
In-Reply-To: <1354513326-21026-1-git-send-email-qingx@marvell.com>

On 12/03/2012 01:42 PM, Qing Xu wrote:
> From: Qing Xu <qingx@marvell.com>
>
> irq base is stored in 88pm80x's drv data, we need to add irq
> base to get the correct irq num
>
> Signed-off-by: Qiao Zhou <zhouqiao@marvell.com>
> Signed-off-by: Qing Xu <qingx@marvell.com>
> ---
>   drivers/input/misc/88pm80x_onkey.c |    7 ++++---
>   1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/input/misc/88pm80x_onkey.c b/drivers/input/misc/88pm80x_onkey.c
> index 7f26e7b..cc352f9 100644
> --- a/drivers/input/misc/88pm80x_onkey.c
> +++ b/drivers/input/misc/88pm80x_onkey.c
> @@ -67,7 +67,7 @@ static int __devinit pm80x_onkey_probe(struct platform_device *pdev)
>   
>   	struct pm80x_chip *chip = dev_get_drvdata(pdev->dev.parent);
>   	struct pm80x_onkey_info *info;
> -	int err;
> +	int irq, err;
>   
>   	info = kzalloc(sizeof(struct pm80x_onkey_info), GFP_KERNEL);
>   	if (!info)
> @@ -75,13 +75,14 @@ static int __devinit pm80x_onkey_probe(struct platform_device *pdev)
>   
>   	info->pm80x = chip;
>   
> -	info->irq = platform_get_irq(pdev, 0);
> -	if (info->irq < 0) {
> +	irq = platform_get_irq(pdev, 0);
> +	if (irq < 0) {
>   		dev_err(&pdev->dev, "No IRQ resource!\n");
>   		err = -EINVAL;
>   		goto out;
>   	}
>   
> +	info->irq = irq + chip->irq_base;
>   	info->map = info->pm80x->regmap;
>   	if (!info->map) {
>   		dev_err(&pdev->dev, "no regmap!\n");


Samuel,

Could you help to review my patch? Thanks a lot!

Qing


      reply	other threads:[~2012-12-12  6:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-03  5:42 [PATCH 3/4] onkey: 88pm80x: update irq base Qing Xu
2012-12-12  6:26 ` Qing Xu [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=50C82392.80607@marvell.com \
    --to=qingx@marvell.com \
    --cc=cxie4@marvell.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sameo@linux.intel.com \
    --cc=zhouqiao@marvell.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