/* * Copyright (C) 2009-2010 Pengutronix * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de> * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. */#include <mach/devices-common.h>structplatform_device*__initimx_add_imx_i2c(intid,resource_size_tiobase,resource_size_tiosize,intirq,conststructimxi2c_platform_data*pdata){structresourceres[]={{.start=iobase,.end=iobase+iosize-1,.flags=IORESOURCE_MEM,},{.start=irq,.end=irq,.flags=IORESOURCE_IRQ,},};returnimx_add_platform_device("imx-i2c",id,res,ARRAY_SIZE(res),pdata,sizeof(*pdata));}