瀏覽代碼

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 <sudip@vectorindia.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Sudip Mukherjee 9 年之前
父節點
當前提交
59fe66313a
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      drivers/clk/versatile/clk-sp810.c

+ 1 - 3
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");