From patchwork Sat May 18 21:27:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 10949129 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BD2771398 for ; Sat, 18 May 2019 21:28:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE55B28541 for ; Sat, 18 May 2019 21:28:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2D862856F; Sat, 18 May 2019 21:28:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E24628541 for ; Sat, 18 May 2019 21:28:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729619AbfERV2S (ORCPT ); Sat, 18 May 2019 17:28:18 -0400 Received: from sauhun.de ([88.99.104.3]:35826 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729535AbfERV2S (ORCPT ); Sat, 18 May 2019 17:28:18 -0400 Received: from localhost (p5486CE4C.dip0.t-ipconnect.de [84.134.206.76]) by pokefinder.org (Postfix) with ESMTPSA id 103BF2C2356; Sat, 18 May 2019 23:28:17 +0200 (CEST) From: Wolfram Sang To: linux-watchdog@vger.kernel.org Cc: Wolfram Sang , Wim Van Sebroeck , Guenter Roeck , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Subject: [PATCH 17/46] watchdog: imx_sc_wdt: drop warning after registering device Date: Sat, 18 May 2019 23:27:32 +0200 Message-Id: <20190518212801.31010-18-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190518212801.31010-1-wsa+renesas@sang-engineering.com> References: <20190518212801.31010-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The core will print out details now. Signed-off-by: Wolfram Sang --- drivers/watchdog/imx_sc_wdt.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/watchdog/imx_sc_wdt.c b/drivers/watchdog/imx_sc_wdt.c index 49848b66186c..847aa1c3b5c2 100644 --- a/drivers/watchdog/imx_sc_wdt.c +++ b/drivers/watchdog/imx_sc_wdt.c @@ -122,13 +122,7 @@ static int imx_sc_wdt_probe(struct platform_device *pdev) watchdog_stop_on_reboot(imx_sc_wdd); watchdog_stop_on_unregister(imx_sc_wdd); - ret = devm_watchdog_register_device(dev, imx_sc_wdd); - if (ret) { - dev_err(dev, "Failed to register watchdog device\n"); - return ret; - } - - return 0; + return devm_watchdog_register_device(dev, imx_sc_wdd); } static int __maybe_unused imx_sc_wdt_suspend(struct device *dev)