From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QmQqn-0004Cc-0X for barebox@lists.infradead.org; Thu, 28 Jul 2011 13:42:13 +0000 From: Sascha Hauer Date: Thu, 28 Jul 2011 15:42:04 +0200 Message-Id: <1311860524-28566-12-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1311860524-28566-1-git-send-email-s.hauer@pengutronix.de> References: <1311860524-28566-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 11/11] fec_mpc5200: switch to resources To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- drivers/net/fec_mpc5200.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/fec_mpc5200.c b/drivers/net/fec_mpc5200.c index 7528316..4ebd906 100644 --- a/drivers/net/fec_mpc5200.c +++ b/drivers/net/fec_mpc5200.c @@ -673,7 +673,7 @@ int mpc5xxx_fec_probe(struct device_d *dev) edev->get_ethaddr = mpc5xxx_fec_get_ethaddr, edev->set_ethaddr = mpc5xxx_fec_set_ethaddr, - fec->eth = (ethernet_regs *)dev->map_base; + fec->eth = dev_request_mem_region(dev, 0); fec->tbdBase = (FEC_TBD *)FEC_BD_BASE; fec->rbdBase = (FEC_RBD *)(FEC_BD_BASE + FEC_TBD_NUM * sizeof(FEC_TBD)); -- 1.7.5.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox