pwm: pwm-mxs: use global reset function stmp_reset_block
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>
This commit is contained in:
parent
071407eefd
commit
01bf32e949
|
@ -30,6 +30,7 @@ config PWM_IMX
|
||||||
config PWM_MXS
|
config PWM_MXS
|
||||||
tristate "Freescale MXS PWM support"
|
tristate "Freescale MXS PWM support"
|
||||||
depends on ARCH_MXS && OF
|
depends on ARCH_MXS && OF
|
||||||
|
select STMP_DEVICE
|
||||||
help
|
help
|
||||||
Generic PWM framework driver for Freescale MXS.
|
Generic PWM framework driver for Freescale MXS.
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/pwm.h>
|
#include <linux/pwm.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <mach/common.h>
|
#include <linux/stmp_device.h>
|
||||||
|
|
||||||
#define SET 0x4
|
#define SET 0x4
|
||||||
#define CLR 0x8
|
#define CLR 0x8
|
||||||
|
@ -163,7 +163,7 @@ static int mxs_pwm_probe(struct platform_device *pdev)
|
||||||
mxs->dev = &pdev->dev;
|
mxs->dev = &pdev->dev;
|
||||||
platform_set_drvdata(pdev, mxs);
|
platform_set_drvdata(pdev, mxs);
|
||||||
|
|
||||||
mxs_reset_block(mxs->base);
|
stmp_reset_block(mxs->base);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue