summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/spear_thermal.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-05-07 15:05:32 +0900
committerZhang Rui <rui.zhang@intel.com>2014-05-15 17:15:26 +0800
commitfa018d3eed0960a5dcc2d93bb59a770ea341bc9e (patch)
treef2b7b651af6a26ecc376becabdae7a04f61d0067 /drivers/thermal/spear_thermal.c
parent2a9675b39ad1afddf6075c643dc7905e45225de9 (diff)
downloadblackbird-op-linux-fa018d3eed0960a5dcc2d93bb59a770ea341bc9e.tar.gz
blackbird-op-linux-fa018d3eed0960a5dcc2d93bb59a770ea341bc9e.zip
thermal: spear: 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> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/spear_thermal.c')
-rw-r--r--drivers/thermal/spear_thermal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c
index ab79ea4701d9..1e2193fc3241 100644
--- a/drivers/thermal/spear_thermal.c
+++ b/drivers/thermal/spear_thermal.c
@@ -113,10 +113,8 @@ static int spear_thermal_probe(struct platform_device *pdev)
}
stdev = devm_kzalloc(&pdev->dev, sizeof(*stdev), GFP_KERNEL);
- if (!stdev) {
- dev_err(&pdev->dev, "kzalloc fail\n");
+ if (!stdev)
return -ENOMEM;
- }
/* Enable thermal sensor */
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
OpenPOWER on IntegriCloud