From patchwork Fri Oct 26 18:43:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 1653151 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id DC94640135 for ; Fri, 26 Oct 2012 18:45:57 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TRosv-0001cz-DI; Fri, 26 Oct 2012 18:43:57 +0000 Received: from mail-ob0-f177.google.com ([209.85.214.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TRosT-0001Yl-LT for linux-arm-kernel@lists.infradead.org; Fri, 26 Oct 2012 18:43:30 +0000 Received: by mail-ob0-f177.google.com with SMTP id wd20so2881917obb.36 for ; Fri, 26 Oct 2012 11:43:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=1l4Ga6mcktofbmHcJWhWFsBpfuUkg7E4GXDm4js/Kr4=; b=BLQNUa838Mij4nhXxq2HUFnuXgm0X7fzAqdb32jtEtulByz56EkMpH+XdCTxMIiIf7 JfnUUgU22cxjGITOF3nQsUeoNb5IApMjtcHZ95y7ZGvxix7WXAI7Z+cmqhI9+jPBWHSe +W9w1qX737m0qsn40oQbYWRM103tH0QXCQyuZVOV70nHD1zM8sMVH+ECISJyYZF6XM3y F/1asJxB8rEsWiiOVL8VcAv5Lmmrd7o8SOoyW6xOcV1hHth4Xw0VnlMmTLq93drRVQS/ 3jDbp86oHCfN6oYV6VIYnVKV9KktJJymsAC7kv5lbttaU2TlD55RzRzeCHs31Tz9Tz1x XLeQ== Received: by 10.60.170.44 with SMTP id aj12mr20508420oec.3.1351277009484; Fri, 26 Oct 2012 11:43:29 -0700 (PDT) Received: from rob-laptop.calxeda.com ([173.226.190.126]) by mx.google.com with ESMTPS id ig3sm2136320obb.0.2012.10.26.11.43.27 (version=SSLv3 cipher=OTHER); Fri, 26 Oct 2012 11:43:28 -0700 (PDT) From: Rob Herring To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/6] ARM: smp_twd: don't warn on no DT node Date: Fri, 26 Oct 2012 13:43:06 -0500 Message-Id: <1351276988-28382-5-git-send-email-robherring2@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1351276988-28382-1-git-send-email-robherring2@gmail.com> References: <1351276988-28382-1-git-send-email-robherring2@gmail.com> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (robherring2[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (robherring2[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Olof Johansson , Rob Herring , Arnd Bergmann X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Rob Herring Not having a TWD is valid if we have multiple platforms with different cores, so remove the warning message. Signed-off-by: Rob Herring --- arch/arm/kernel/smp_twd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c index e1f9069..e52e80a 100644 --- a/arch/arm/kernel/smp_twd.c +++ b/arch/arm/kernel/smp_twd.c @@ -366,10 +366,8 @@ void __init twd_local_timer_of_register(void) int err; 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); if (!twd_ppi) {