Commit 1da6de33 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Krzysztof Kozlowski

soc: samsung: pmu: Remove messages for failed memory allocation

Memory subsystem already prints message about failed memory
allocation, there is no need to do it in the driver.
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: default avatarTomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent ec7cc5b1
...@@ -117,10 +117,8 @@ static int exynos_pmu_probe(struct platform_device *pdev) ...@@ -117,10 +117,8 @@ static int exynos_pmu_probe(struct platform_device *pdev)
pmu_context = devm_kzalloc(&pdev->dev, pmu_context = devm_kzalloc(&pdev->dev,
sizeof(struct exynos_pmu_context), sizeof(struct exynos_pmu_context),
GFP_KERNEL); GFP_KERNEL);
if (!pmu_context) { if (!pmu_context)
dev_err(dev, "Cannot allocate memory.\n");
return -ENOMEM; return -ENOMEM;
}
pmu_context->dev = dev; pmu_context->dev = dev;
pmu_context->pmu_data = of_device_get_match_data(dev); pmu_context->pmu_data = of_device_get_match_data(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment