aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/pwm-vt8500.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-vt8500.c b/drivers/pwm/pwm-vt8500.c
index 323125abf3f4..652e6b5b859b 100644
--- a/drivers/pwm/pwm-vt8500.c
+++ b/drivers/pwm/pwm-vt8500.c
@@ -211,10 +211,8 @@ static int vt8500_pwm_probe(struct platform_device *pdev)
211 } 211 }
212 212
213 chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL); 213 chip = devm_kzalloc(&pdev->dev, sizeof(*chip), GFP_KERNEL);
214 if (chip == NULL) { 214 if (chip == NULL)
215 dev_err(&pdev->dev, "failed to allocate memory\n");
216 return -ENOMEM; 215 return -ENOMEM;
217 }
218 216
219 chip->chip.dev = &pdev->dev; 217 chip->chip.dev = &pdev->dev;
220 chip->chip.ops = &vt8500_pwm_ops; 218 chip->chip.ops = &vt8500_pwm_ops;