diff options
Diffstat (limited to 'drivers/pwm/pwm-ab8500.c')
-rw-r--r-- | drivers/pwm/pwm-ab8500.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-ab8500.c b/drivers/pwm/pwm-ab8500.c index 1d07a6f99375..9d53e8ef90d0 100644 --- a/drivers/pwm/pwm-ab8500.c +++ b/drivers/pwm/pwm-ab8500.c | |||
@@ -101,10 +101,8 @@ static int ab8500_pwm_probe(struct platform_device *pdev) | |||
101 | * device which is required for ab8500 read and write | 101 | * device which is required for ab8500 read and write |
102 | */ | 102 | */ |
103 | ab8500 = devm_kzalloc(&pdev->dev, sizeof(*ab8500), GFP_KERNEL); | 103 | ab8500 = devm_kzalloc(&pdev->dev, sizeof(*ab8500), GFP_KERNEL); |
104 | if (ab8500 == NULL) { | 104 | if (ab8500 == NULL) |
105 | dev_err(&pdev->dev, "failed to allocate memory\n"); | ||
106 | return -ENOMEM; | 105 | return -ENOMEM; |
107 | } | ||
108 | 106 | ||
109 | ab8500->chip.dev = &pdev->dev; | 107 | ab8500->chip.dev = &pdev->dev; |
110 | ab8500->chip.ops = &ab8500_pwm_ops; | 108 | ab8500->chip.ops = &ab8500_pwm_ops; |