From: Baruch Siach Date: Mon, 7 Mar 2011 13:19:11 +0000 (+0200) Subject: ARM: imx/mx25: dynamically allocate pwm devices X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=47be6b92c37a27837d73f4807684ce423aed796d;p=linux-beck.git ARM: imx/mx25: dynamically allocate pwm devices Signed-off-by: Baruch Siach Signed-off-by: Sascha Hauer --- diff --git a/arch/arm/mach-imx/devices-imx25.h b/arch/arm/mach-imx/devices-imx25.h index d1ea79a6f800..b591d72f6037 100644 --- a/arch/arm/mach-imx/devices-imx25.h +++ b/arch/arm/mach-imx/devices-imx25.h @@ -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])