mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
pwm: rockchip: delete unused code
Change-Id: I64756dc1f8710c36cdf73b3e62bf15342f83b749 Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
parent
37e83ddf43
commit
1038aaac57
|
|
@ -17,7 +17,6 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/pwm.h>
|
||||
#include <linux/time.h>
|
||||
#include <linux/rk_fb.h>
|
||||
|
||||
#define PWM_CTRL_TIMER_EN (1 << 0)
|
||||
#define PWM_CTRL_OUTPUT_EN (1 << 3)
|
||||
|
|
@ -155,16 +154,6 @@ static void rockchip_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
|
|||
ctrl &= ~PWM_LOCK_EN;
|
||||
|
||||
writel(ctrl, pc->base + pc->data->regs.ctrl);
|
||||
|
||||
#ifdef CONFIG_FB_ROCKCHIP
|
||||
if (!pc->data->regs.ctrl) {
|
||||
int ret;
|
||||
|
||||
ret = rk_fb_set_vop_pwm();
|
||||
if (ret)
|
||||
dev_err(pc->chip.dev, "rk_fb_set_vop_pwm failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static int rockchip_pwm_enable(struct pwm_chip *chip,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user