diff options
| -rw-r--r-- | drivers/regulator/dbx500-prcmu.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/regulator/dbx500-prcmu.c b/drivers/regulator/dbx500-prcmu.c index ce89f7848a57..f111dfb8d2d7 100644 --- a/drivers/regulator/dbx500-prcmu.c +++ b/drivers/regulator/dbx500-prcmu.c | |||
| @@ -202,18 +202,12 @@ ux500_regulator_debug_init(struct platform_device *pdev, | |||
| 202 | rdebug.num_regulators = num_regulators; | 202 | rdebug.num_regulators = num_regulators; |
| 203 | 203 | ||
| 204 | rdebug.state_before_suspend = kzalloc(num_regulators, GFP_KERNEL); | 204 | rdebug.state_before_suspend = kzalloc(num_regulators, GFP_KERNEL); |
| 205 | if (!rdebug.state_before_suspend) { | 205 | if (!rdebug.state_before_suspend) |
| 206 | dev_err(&pdev->dev, | ||
| 207 | "could not allocate memory for saving state\n"); | ||
| 208 | goto exit_destroy_power_state; | 206 | goto exit_destroy_power_state; |
| 209 | } | ||
| 210 | 207 | ||
| 211 | rdebug.state_after_suspend = kzalloc(num_regulators, GFP_KERNEL); | 208 | rdebug.state_after_suspend = kzalloc(num_regulators, GFP_KERNEL); |
| 212 | if (!rdebug.state_after_suspend) { | 209 | if (!rdebug.state_after_suspend) |
| 213 | dev_err(&pdev->dev, | ||
| 214 | "could not allocate memory for saving state\n"); | ||
| 215 | goto exit_free; | 210 | goto exit_free; |
| 216 | } | ||
| 217 | 211 | ||
| 218 | dbx500_regulator_testcase(regulator_info, num_regulators); | 212 | dbx500_regulator_testcase(regulator_info, num_regulators); |
| 219 | return 0; | 213 | return 0; |
