pwm: pwm-mxs: use global reset function stmp_reset_block
authorShawn Guo <shawn.guo@linaro.org>
Tue, 26 Jun 2012 08:58:09 +0000 (16:58 +0800)
committerThierry Reding <thierry.reding@avionic-design.de>
Mon, 23 Jul 2012 11:23:54 +0000 (13:23 +0200)
Use global reset function stmp_reset_block instead of mxs_reset_block
to remove <mach/common.h> inclusion.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/pwm/Kconfig
drivers/pwm/pwm-mxs.c

index 39bdebc..5227415 100644 (file)
@@ -30,6 +30,7 @@ config PWM_IMX
 config PWM_MXS
        tristate "Freescale MXS PWM support"
        depends on ARCH_MXS && OF
+       select STMP_DEVICE
        help
          Generic PWM framework driver for Freescale MXS.
 
index d9a3805..23e524b 100644 (file)
@@ -19,7 +19,7 @@
 #include <linux/platform_device.h>
 #include <linux/pwm.h>
 #include <linux/slab.h>
-#include <mach/common.h>
+#include <linux/stmp_device.h>
 
 #define SET    0x4
 #define CLR    0x8
@@ -163,7 +163,7 @@ static int mxs_pwm_probe(struct platform_device *pdev)
        mxs->dev = &pdev->dev;
        platform_set_drvdata(pdev, mxs);
 
-       mxs_reset_block(mxs->base);
+       stmp_reset_block(mxs->base);
 
        return 0;