From: Tom Rini Date: Wed, 26 Dec 2018 21:35:30 -0500 Subject: [U-Boot] [U-Boot,v2] net: macb: fix mapping of registers In-Reply-To: <20181218204903.7211-1-ramon.fried@gmail.com> References: <20181218204903.7211-1-ramon.fried@gmail.com> Message-ID: <20181227023530.GA31272@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Dec 18, 2018 at 10:49:03PM +0200, Ramon Fried wrote: > Some architectures (MIPS) needs mapping to access IOMEM. > Fix that. > > Fixes: f1dcc19b213d ("net: macb: Convert to driver model") > > Signed-off-by: Ramon Fried > Reviewed-by: Daniel Schwierzeck > --- > v2: switched to use dev_reamp_addr() to reduce boilerplate code. > (as suggested by Daniel Schwierzeck) On many platforms: arm: w+ sama5d36ek_cmp_nandflash +(sama5d36ek_cmp_nandflash) pdata->iobase = dev_remap_addr(dev); +(sama5d36ek_cmp_nandflash) ^ w+(sama5d36ek_cmp_nandflash) drivers/net/macb.c: In function 'macb_eth_ofdata_to_platdata': w+(sama5d36ek_cmp_nandflash) drivers/net/macb.c:1154:16: warning: assignment makes integer from pointer without a cast [-Wint-conversion] -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: