Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp585136imm; Fri, 14 Sep 2018 03:15:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYsZyHhipu4kIHOOCH1n7jLypB4K9EaFS3q0Kjq40XaaD6CTy8f7i42tSSvgQopBp3oBpat X-Received: by 2002:a63:5660:: with SMTP id g32-v6mr10769937pgm.227.1536920149618; Fri, 14 Sep 2018 03:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536920149; cv=none; d=google.com; s=arc-20160816; b=CbE2b2Rb63NG3Siv6+2wKerOCBIconh9wzRq1ZTVy9ODPYv/AlYHNSKXoALqI4qOdL NODOhqnxwgQjpY6pjuYhPn8i8t2dHBgHBC1RnmAZW06NMIWjxfMDw5OvQShx7dtHHOr8 PbQXslpgT1PmxmT5SzRiBdnCszSIUrsoiIiWY49FMgjgPMK5EdatD1CjicKg9Wzes6Bv KtCwg78Y54uy5sPaUI96BB68awzhVsPMS+oJrvrEb2R5maNlLSYberznKeSEQE7rf+J0 IEdEPRPMWFGMAkkGiu83jvQt+zahfVNG6uTx1k/5xxwTFp0n0A6LVSRfXJN+g0RejPpe p34A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=wQJV+ddJAv5kZKQDNvJ+wHS7DL8i4Je+cSh6xS7XWuM=; b=Kax5HaeQiHysKLang1bdNKzcbMoV+JKF81spJNHEm82baNEJToFGRnVDN0zybT4hso Zzt2Q5sA+oGEBL/Z+VhwfPxBImQvAZPHmv78BzALmbvCGtCRblJV7asYaRhTwpibWGeh Z+VxdTUv9xbQ8dfuujaz5RUJgokIvgrFoSy46v2hJ0kC6rG3nf2I56TYd380EPkCX3YR nTbEXnAoOld4CC4E9EHyCLgy+ZtptfeJVw632UI5cCRBi8OeRMPV8yHhH3VQ8GZTFzx9 g2LIEtbl8Xs4m8XiB5xrbL3XXa2EXmq67nqAwoAY+HcjAKZCIzV1xWhqYrU5sZqHZuDv 0Ddg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rircDlgB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1-v6si6671461plb.291.2018.09.14.03.15.34; Fri, 14 Sep 2018 03:15:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rircDlgB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728236AbeINP1s (ORCPT + 99 others); Fri, 14 Sep 2018 11:27:48 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54813 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728162AbeINP1r (ORCPT ); Fri, 14 Sep 2018 11:27:47 -0400 Received: by mail-wm1-f65.google.com with SMTP id c14-v6so1371479wmb.4; Fri, 14 Sep 2018 03:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wQJV+ddJAv5kZKQDNvJ+wHS7DL8i4Je+cSh6xS7XWuM=; b=rircDlgBDrHWS6V0DOCcfoALp08ITkG3cQ57mUW7/dQW9MhPvpXC9MaJHZD4JFOI7h qKMb3jIRf04nxQSuFVj4cpLQJ78Cm+PNn648suHBIaqZP2UWd8b3tCgjEfSyPdSxIqjm A1loWb8zNhxtU80TYzg0Dj6lTTtHHGbgu0W1aky+Ukrdv8j2iaRljnVwl9IEiuy6noJr CoexKYHOav8Shb2F26s6rbnNSBjZfZAGDXBDZgdXJKLu22hORAr1+f0ozckapDmBpLJ3 ihAzUGDDn550klDx8+4KhI+utfVHeFKEtUc2rRK7zlvyp7MjPxBZ7ptAeDwE2IsCg1Wn hRuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wQJV+ddJAv5kZKQDNvJ+wHS7DL8i4Je+cSh6xS7XWuM=; b=BSVxvE0ZT1k3qKVir33BOVOt1yAlkSNvCNg0JzMZEaPO9dwITvYP2Ezjfi9SHUtofB 6U8McC2vErFK7mtEsmNBX19rU1+eVhalXodfQk0qUunwYo1yalyOTldRuBFmDtQSRoV9 ohu32uWPVQNNMYTLshpEPeuWZDSzSCbvfKN2jwnVGCEB63C95cPQFbRdP+YAThpc+wrh /Z/c4iA9ZPpEk61cMK58ZTXkDKUKm4GyzXwhKGk1X42Lrjc+c+8qbMfz26hBsWEMAWkZ TrFAzxpLOzqEHXwZ3xv1gu+k9fyFSCRIsA45H7GODig9jqQrhn8xL3DtVhQd6ZnmGkDS cseg== X-Gm-Message-State: APzg51AMXA5gl41xfKVdsUqdGEFFspNCDYWHL6pPGeXq9pBx8b/Bn3mR vbLJz3aPp53AMVXPMWBNnEI= X-Received: by 2002:a1c:ed4:: with SMTP id 203-v6mr1576847wmo.96.1536920037259; Fri, 14 Sep 2018 03:13:57 -0700 (PDT) Received: from localhost.localdomain (static-css-cqn-143221.business.bouyguestelecom.com. [176.149.143.221]) by smtp.gmail.com with ESMTPSA id x15-v6sm5618524wrt.53.2018.09.14.03.13.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Sep 2018 03:13:56 -0700 (PDT) From: Romain Izard To: Nicolas Ferre , Alexandre Belloni , Wim Van Sebroeck , Guenter Roeck , Marcus Folkesson Cc: linux-arm-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Romain Izard Subject: [PATCH 1/2] watchdog: sama5d4: fix timeout-sec usage Date: Fri, 14 Sep 2018 12:13:38 +0200 Message-Id: <20180914101339.7382-2-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180914101339.7382-1-romain.izard.pro@gmail.com> References: <20180914101339.7382-1-romain.izard.pro@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When using watchdog_init_timeout to update the default timeout value, an error means that there is no "timeout-sec" in the relevant device tree node. This should not prevent binding of the driver to the device. Fixes: 976932e40036 ("watchdog: sama5d4: make use of timeout-secs provided in devicetree") Signed-off-by: Romain Izard --- drivers/watchdog/sama5d4_wdt.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/watchdog/sama5d4_wdt.c b/drivers/watchdog/sama5d4_wdt.c index 255169916dbb..1e93c1b0e3cf 100644 --- a/drivers/watchdog/sama5d4_wdt.c +++ b/drivers/watchdog/sama5d4_wdt.c @@ -247,11 +247,7 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) } } - ret = watchdog_init_timeout(wdd, wdt_timeout, &pdev->dev); - if (ret) { - dev_err(&pdev->dev, "unable to set timeout value\n"); - return ret; - } + watchdog_init_timeout(wdd, wdt_timeout, &pdev->dev); timeout = WDT_SEC2TICKS(wdd->timeout); -- 2.17.1