From: David Wu Date: Wed, 8 Mar 2017 02:51:43 +0000 (+0800) Subject: pwm: rockchip: Fix the warning for rockchip_linux_defconfig X-Git-Tag: firefly_0821_release~395 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aa060ee958ef791b9057b056d36148cec5f900a0;p=firefly-linux-kernel-4.4.55.git pwm: rockchip: Fix the warning for rockchip_linux_defconfig 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 --- diff --git a/drivers/pwm/pwm-rockchip.c b/drivers/pwm/pwm-rockchip.c index 004514a255b9..de315617e44e 100644 --- a/drivers/pwm/pwm-rockchip.c +++ b/drivers/pwm/pwm-rockchip.c @@ -173,7 +173,6 @@ static int rockchip_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, 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); @@ -194,6 +193,8 @@ static int rockchip_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, #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);