From: Sudip Mukherjee Date: Fri, 20 Nov 2015 08:52:28 +0000 (+0530) Subject: clk: versatile: remove unneeded error message X-Git-Tag: v4.14-rc1~4001^2~14^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=59fe66313a41843bc4c237275e64f81cde121ac8;p=platform%2Fkernel%2Flinux-rpi.git clk: versatile: remove unneeded error message If kzalloc fails we will already have many messages in the log and we do not need another message to know that kzalloc for sp810 has failed. Signed-off-by: Sudip Mukherjee Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/versatile/clk-sp810.c b/drivers/clk/versatile/clk-sp810.c index 6a36c8b..e78755e 100644 --- a/drivers/clk/versatile/clk-sp810.c +++ b/drivers/clk/versatile/clk-sp810.c @@ -95,10 +95,8 @@ static void __init clk_sp810_of_setup(struct device_node *node) int i; bool deprecated; - if (!sp810) { - pr_err("Failed to allocate memory for SP810!\n"); + if (!sp810) return; - } if (of_clk_parent_fill(node, parent_names, num) != num) { pr_warn("Failed to obtain parent clocks for SP810!\n");