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 casper.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qj5qk-0000eW-3k for barebox@lists.infradead.org; Tue, 19 Jul 2011 08:40:23 +0000 From: Sascha Hauer Date: Tue, 19 Jul 2011 10:39:59 +0200 Message-Id: <1311064803-6305-16-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1311064803-6305-1-git-send-email-s.hauer@pengutronix.de> References: <1311064803-6305-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 15/19] i.MX devices: convert to struct resource To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- arch/arm/mach-imx/devices.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/devices.c b/arch/arm/mach-imx/devices.c index 0395b0e..6503c30 100644 --- a/arch/arm/mach-imx/devices.c +++ b/arch/arm/mach-imx/devices.c @@ -9,8 +9,11 @@ static struct device_d *imx_add_device(char *name, int id, void *base, int size, dev = xzalloc(sizeof(*dev)); strcpy(dev->name,name); dev->id = id; - dev->map_base = (unsigned long)base; - dev->size = size; + dev->resource = xzalloc(sizeof(struct resource)); + dev->resource[0].start = (resource_size_t)base; + dev->resource[0].size = size; + dev->resource[0].flags = IORESOURCE_MEM; + dev->num_resources = 1; dev->platform_data = pdata; register_device(dev); -- 1.7.5.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox