Merge remote-tracking branches 'regulator/topic/max1586', 'regulator/topic/max77802...
[firefly-linux-kernel-4.4.55.git] / drivers / pwm / pwm-tiecap.c
index 032092c7a6ae3d23705ca79d6d1e175b2a524768..74efbe7f20c3ab084939421dcafa40b108baee95 100644 (file)
@@ -209,10 +209,8 @@ static int ecap_pwm_probe(struct platform_device *pdev)
        u16 status;
 
        pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL);
-       if (!pc) {
-               dev_err(&pdev->dev, "failed to allocate memory\n");
+       if (!pc)
                return -ENOMEM;
-       }
 
        clk = devm_clk_get(&pdev->dev, "fck");
        if (IS_ERR(clk)) {