
9 Oct
2015
9 Oct
'15
10:48 a.m.
Hi Marek,
On 10/09/2015 05:43 AM, Marek Vasut wrote:
I'd suggest that you do this:
void *reg; unsigned long *h = memalign(...); flush_dcache_range();
reg = ioremap(); if (!reg) fail here
*handle = h; // modify handle after we know ioremap succeeded.
return reg;
Thanks a lot for your suggestion. It is much clear with this.
Best regards, Thomas