diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-05-07 02:04:48 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2014-05-15 05:15:26 -0400 |
commit | 2a9675b39ad1afddf6075c643dc7905e45225de9 (patch) | |
tree | 26fa5e22f96346f9943e58cf756e917dafa0e266 | |
parent | b0a60d88d60b92c769ec589796403937f6e5243e (diff) |
thermal: exynos: remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
-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 | } |