This patch fix the following warning:
drivers/pwm/pwm-rockchip.c:176:6: warning: unused variable 'ret' [-Wunused-variable]
Change-Id: I9ac08ad08fdefee5b875d36592936b07f032586c
Signed-off-by: David Wu <david.wu@rock-chips.com>
struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip);
unsigned long period, duty;
u64 clk_rate, div;
- int ret;
clk_rate = clk_get_rate(pc->clk);
#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);