diff options
Diffstat (limited to 'drivers/thermal/spear_thermal.c')
-rw-r--r-- | drivers/thermal/spear_thermal.c | 4 |
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) | |||
113 | } | 113 | } |
114 | 114 | ||
115 | stdev = devm_kzalloc(&pdev->dev, sizeof(*stdev), GFP_KERNEL); | 115 | stdev = devm_kzalloc(&pdev->dev, sizeof(*stdev), GFP_KERNEL); |
116 | if (!stdev) { | 116 | if (!stdev) |
117 | dev_err(&pdev->dev, "kzalloc fail\n"); | ||
118 | return -ENOMEM; | 117 | return -ENOMEM; |
119 | } | ||
120 | 118 | ||
121 | /* Enable thermal sensor */ | 119 | /* Enable thermal sensor */ |
122 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 120 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |