aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pwm/pwm-tegra.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-tegra.c b/drivers/pwm/pwm-tegra.c
index 74298c561c4e..61d86b9498ca 100644
--- a/drivers/pwm/pwm-tegra.c
+++ b/drivers/pwm/pwm-tegra.c
@@ -173,10 +173,8 @@ static int tegra_pwm_probe(struct platform_device *pdev)
173 int ret; 173 int ret;
174 174
175 pwm = devm_kzalloc(&pdev->dev, sizeof(*pwm), GFP_KERNEL); 175 pwm = devm_kzalloc(&pdev->dev, sizeof(*pwm), GFP_KERNEL);
176 if (!pwm) { 176 if (!pwm)
177 dev_err(&pdev->dev, "failed to allocate memory\n");
178 return -ENOMEM; 177 return -ENOMEM;
179 }
180 178
181 pwm->dev = &pdev->dev; 179 pwm->dev = &pdev->dev;
182 180