]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: imx/mx25: dynamically allocate pwm devices
authorBaruch Siach <baruch@tkos.co.il>
Mon, 7 Mar 2011 13:19:11 +0000 (15:19 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 8 Mar 2011 12:24:24 +0000 (13:24 +0100)
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/devices-imx25.h

index d1ea79a6f80065df94d72e4c1287d9112aaf7d73..b591d72f60372aaac2c27c2cfea1d5cb7525745a 100644 (file)
@@ -85,3 +85,7 @@ extern const struct imx_spi_imx_data imx25_cspi_data[] __initconst;
 #define imx25_add_spi_imx0(pdata)      imx25_add_spi_imx(0, pdata)
 #define imx25_add_spi_imx1(pdata)      imx25_add_spi_imx(1, pdata)
 #define imx25_add_spi_imx2(pdata)      imx25_add_spi_imx(2, pdata)
+
+extern struct imx_mxc_pwm_data imx25_mxc_pwm_data[] __initconst;
+#define imx25_add_mxc_pwm(id)  \
+       imx_add_mxc_pwm(&imx25_mxc_pwm_data[id])