mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely@secretlab.ca>
To: Michal Simek <monstr@monstr.eu>
Cc: linux-kernel@vger.kernel.org, jaxboe@fusionio.com,
	hch@infradead.org, smaclennan@pikatech.com,
	michal.simek@petalogix.com, john.williams@petalogix.com
Subject: Re: [PATCH] of: xsysace: Fix OF probing on little-endian systems
Date: Mon, 18 Oct 2010 09:50:52 -0600	[thread overview]
Message-ID: <20101018155052.GM19399@angua.secretlab.ca> (raw)
In-Reply-To: <1287379989-10772-1-git-send-email-monstr@monstr.eu>

On Mon, Oct 18, 2010 at 03:33:09PM +1000, Michal Simek wrote:
> Convert big-endian DTB to little-endian if necessary.
> 
> Signed-off-by: Michal Simek <monstr@monstr.eu>

Applied, thanks.

g.

> ---
>  drivers/block/xsysace.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/block/xsysace.c b/drivers/block/xsysace.c
> index 057413b..66911d3 100644
> --- a/drivers/block/xsysace.c
> +++ b/drivers/block/xsysace.c
> @@ -1224,7 +1224,8 @@ ace_of_probe(struct platform_device *op, const struct of_device_id *match)
>  		bus_width = ACE_BUS_WIDTH_8;
>  
>  	/* Call the bus-independant setup code */
> -	return ace_alloc(&op->dev, id ? *id : 0, physaddr, irq, bus_width);
> +	return ace_alloc(&op->dev, id ? be32_to_cpup(id) : 0,
> +						physaddr, irq, bus_width);
>  }
>  
>  static int __devexit ace_of_remove(struct platform_device *op)
> -- 
> 1.6.4.182.g9ebfd
> 

      reply	other threads:[~2010-10-18 15:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-18  5:33 Michal Simek
2010-10-18 15:50 ` Grant Likely [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=20101018155052.GM19399@angua.secretlab.ca \
    --to=grant.likely@secretlab.ca \
    --cc=hch@infradead.org \
    --cc=jaxboe@fusionio.com \
    --cc=john.williams@petalogix.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michal.simek@petalogix.com \
    --cc=monstr@monstr.eu \
    --cc=smaclennan@pikatech.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

all inboxes | Powered by JetHome®