소스 검색

ARM: smp_twd: don't warn on no DT node

Not having a TWD is valid if we have multiple platforms with different
cores, so remove the warning message.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Rob Herring 12 년 전
부모
커밋
0336517b38
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      arch/arm/kernel/smp_twd.c

+ 2 - 4
arch/arm/kernel/smp_twd.c

@@ -366,10 +366,8 @@ void __init twd_local_timer_of_register(void)
 	int err;
 	int err;
 
 
 	np = of_find_matching_node(NULL, twd_of_match);
 	np = of_find_matching_node(NULL, twd_of_match);
-	if (!np) {
-		err = -ENODEV;
-		goto out;
-	}
+	if (!np)
+		return -ENODEV;
 
 
 	twd_ppi = irq_of_parse_and_map(np, 0);
 	twd_ppi = irq_of_parse_and_map(np, 0);
 	if (!twd_ppi) {
 	if (!twd_ppi) {