On Tuesday 09 December 2008, Felipe Balbi wrote:
> > -     host->base = ioremap(r->start, SZ_4K);
> > +     host->base = ioremap(mem->start, SZ_4K);
> 
> what happens if we get a chip with different size here ? Would it be
> safer to use mem->end - mem->start instead of SZ_4K ?? Or maybe
> use that mem_size value ??

mem_size is what I had thought about ... it's the size of the
region that's requested.  I didn't originally do that since
it's a non-DMA change ... but I can do that, you're right it's
the correct thing to have had in the first place.



_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to