MPC8349ea Random Number Generator driver
Arnd Bergmann
arnd at arndb.de
Fri Jun 8 00:03:14 EST 2007
On Thursday 07 June 2007, Philippe Lachenal wrote:
> +-
> +- return ioremap(res.start, 1 + res.end - res.start);
> +-}
>
>
> why is there a 1+ res.end-res.start ? Am I wrong in not adding one in my
> code ?
>
Yes. The res.start is the first byte in the area, res.end is the last one.
For example, in a two byte range, start could be 100, and end 101.
res.end - res.start would therefore be one, not two as ioremap expects.
Arnd <><
More information about the Linuxppc-dev
mailing list