public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Felipe Balbi <felipe.balbi@nokia.com>
Cc: Linux OMAP Mailing List <linux-omap@vger.kernel.org>,
	Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Subject: Re: [PATCH 1/2] arm: omap1: mailbox: kill compile warning
Date: Mon, 28 Dec 2009 16:26:56 -0800	[thread overview]
Message-ID: <20091229002656.GW3512@atomide.com> (raw)
In-Reply-To: <1261512955-19437-2-git-send-email-felipe.balbi@nokia.com>

* Felipe Balbi <felipe.balbi@nokia.com> [091222 12:17]:
> use ioremap to get the virtual address and
> avoid a compile warning.
> 
> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
> ---
>  arch/arm/mach-omap1/mailbox.c |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-omap1/mailbox.c b/arch/arm/mach-omap1/mailbox.c
> index caf889a..38a7d2c 100644
> --- a/arch/arm/mach-omap1/mailbox.c
> +++ b/arch/arm/mach-omap1/mailbox.c
> @@ -160,7 +160,12 @@ static int __devinit omap1_mbox_probe(struct platform_device *pdev)
>  		dev_err(&pdev->dev, "invalid mem resource\n");
>  		return -ENODEV;
>  	}
> -	mbox_base = res->start;
> +
> +	mbox_base = ioremap(res->start, resource_size(res));
> +	if (!mbox_base) {
> +		dev_err(&pdev->dev, "ioremap failed\n");
> +		return -ENODEV;
> +	}
>  
>  	/* DSP IRQ */
>  	res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);

This does not look right, if you look at mach-omap1/devices.c,
OMAP1_MBOX_BASE is still using OMAP1_IO_ADDRESS, so it's already
a virt address.

Maybe update the patch to remove OMAP1_IO_ADDRESS in
mach-omap1/devices.c?

Regards,

Tony

  reply	other threads:[~2009-12-29  0:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-22 20:15 [PATCH 0/2] omap1 mailbox compile warning removal Felipe Balbi
2009-12-22 20:15 ` [PATCH 1/2] arm: omap1: mailbox: kill compile warning Felipe Balbi
2009-12-29  0:26   ` Tony Lindgren [this message]
2009-12-29  0:59     ` [PATCH v2] " Felipe Balbi
2009-12-29 12:56       ` Felipe Balbi
2009-12-29 13:04         ` [PATCH] " Felipe Balbi
2009-12-22 20:15 ` [PATCH 2/2] " Felipe Balbi

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=20091229002656.GW3512@atomide.com \
    --to=tony@atomide.com \
    --cc=Hiroshi.DOYU@nokia.com \
    --cc=felipe.balbi@nokia.com \
    --cc=linux-omap@vger.kernel.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