aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/pwm-tiecap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-tiecap.c b/drivers/pwm/pwm-tiecap.c
index 032092c7a6ae..74efbe7f20c3 100644
--- a/drivers/pwm/pwm-tiecap.c
+++ b/drivers/pwm/pwm-tiecap.c
@@ -209,10 +209,8 @@ static int ecap_pwm_probe(struct platform_device *pdev)
209 u16 status; 209 u16 status;
210 210
211 pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); 211 pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL);
212 if (!pc) { 212 if (!pc)
213 dev_err(&pdev->dev, "failed to allocate memory\n");
214 return -ENOMEM; 213 return -ENOMEM;
215 }
216 214
217 clk = devm_clk_get(&pdev->dev, "fck"); 215 clk = devm_clk_get(&pdev->dev, "fck");
218 if (IS_ERR(clk)) { 216 if (IS_ERR(clk)) {