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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot