2 * Copyright (C) 2010 Pengutronix, Marc Kleine-Budde <kernel@pengutronix.de>
4 * This program is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License version 2 as published by the
6 * Free Software Foundation.
9 #include <mach/devices-common.h>
11 struct platform_device
*__init
imx_add_flexcan(int id
,
12 resource_size_t iobase
, resource_size_t iosize
,
14 const struct flexcan_platform_data
*pdata
)
16 struct resource res
[] = {
19 .end
= iobase
+ iosize
- 1,
20 .flags
= IORESOURCE_MEM
,
24 .flags
= IORESOURCE_IRQ
,
28 return imx_add_platform_device("flexcan", id
, res
, ARRAY_SIZE(res
),
29 pdata
, sizeof(*pdata
));