diff options
| -rw-r--r-- | drivers/thermal/samsung/exynos_tmu.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index ffccc894f0f8..c4dc81c00674 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c | |||
| @@ -611,10 +611,8 @@ static int exynos_tmu_probe(struct platform_device *pdev) | |||
| 611 | 611 | ||
| 612 | data = devm_kzalloc(&pdev->dev, sizeof(struct exynos_tmu_data), | 612 | data = devm_kzalloc(&pdev->dev, sizeof(struct exynos_tmu_data), |
| 613 | GFP_KERNEL); | 613 | GFP_KERNEL); |
| 614 | if (!data) { | 614 | if (!data) |
| 615 | dev_err(&pdev->dev, "Failed to allocate driver structure\n"); | ||
| 616 | return -ENOMEM; | 615 | return -ENOMEM; |
| 617 | } | ||
| 618 | 616 | ||
| 619 | platform_set_drvdata(pdev, data); | 617 | platform_set_drvdata(pdev, data); |
| 620 | mutex_init(&data->lock); | 618 | mutex_init(&data->lock); |
| @@ -660,7 +658,6 @@ static int exynos_tmu_probe(struct platform_device *pdev) | |||
| 660 | sensor_conf = devm_kzalloc(&pdev->dev, | 658 | sensor_conf = devm_kzalloc(&pdev->dev, |
| 661 | sizeof(struct thermal_sensor_conf), GFP_KERNEL); | 659 | sizeof(struct thermal_sensor_conf), GFP_KERNEL); |
| 662 | if (!sensor_conf) { | 660 | if (!sensor_conf) { |
| 663 | dev_err(&pdev->dev, "Failed to allocate registration struct\n"); | ||
| 664 | ret = -ENOMEM; | 661 | ret = -ENOMEM; |
| 665 | goto err_clk; | 662 | goto err_clk; |
| 666 | } | 663 | } |
