Skip to content

Commit

Permalink
pwm: pwm-mxs: use global reset function stmp_reset_block
Browse files Browse the repository at this point in the history
Use global reset function stmp_reset_block instead of mxs_reset_block
to remove <mach/common.h> inclusion.

Signed-off-by: Shawn Guo <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
shawnguo2 authored and Thierry Reding committed Jul 23, 2012
1 parent 071407e commit 01bf32e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions drivers/pwm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions drivers/pwm/pwm-mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 01bf32e

Please sign in to comment.