From patchwork Fri Oct 4 20:03:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 832930 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E5A71C831A for ; Fri, 4 Oct 2024 20:03:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728072214; cv=none; b=bsOIExyUveOyQecyGmYwbzPI8oFv3NJDcYvdoOe6A6a7IIOac7KrjRdWtxFoEi2fQOi2q1FT4AWv+UeZNS37BFt9SVxDOdNlDGg83SgpPCgCxEZf4rU4hUCywrvhO0zE1UWbfrDBP66r5+Sq6BcmDl48YuSGdnENDbhSWMSuMV0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728072214; c=relaxed/simple; bh=CJj1on5dHU/Cnn9BRe9vNc8ialwCOZPXU8zqwRmJgO0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SQdogxjFPvpW40T/VOHBJdkukBslQJmcnHMFdKbecLfP1HyW8/eyVCHj6/u20g7b/6F9Ng4RgnWxeFcbxqCEeEYEMNMRQUib970x4UcVs3j1C5467nprerzNnkYhJ+MQ1gpJYbKDkqth8zRof04xVUasXa9+hwvvUcgLMFzQctU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=XTrM7T73; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="XTrM7T73" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=m+CVovgccu/Vsyu6hyJJY2uIKsvQGgdbownhHRDgcTE=; b=XTrM7T 736PodLQzA2Yctw0L3S+GRARFpZlBxRX7pZAkUMyl9vifvIe5CprqP2As4CsqPrQ Fe983Zq6EKIhwqs2thph7Ek2sXFshnHEiKPdGoSc3XUgtsuEuSgn7lu6045yTdnk oCsQeKPMRn9N7b1gt3MMekCuxIrF6BboM7d9zFxrB0h7+vVUTlVsjzGsHgE7+p23 GLsmNNiE8N0JES613lcQgRX5KJacjH9lHJaf1zyoG2uOPqC7tT2Vn61IeYIFZ6Oh 3Ile76zG1OB7eeFZ+sluU9Pl3m/r4oBhIqYMlSwhldmP0IeKZuLWYsg5zNNV7/fd skq7q+gJHvuwfgew== Received: (qmail 3546579 invoked from network); 4 Oct 2024 22:03:30 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 4 Oct 2024 22:03:30 +0200 X-UD-Smtp-Session: l3s3148p1@whM3KqwjaNdQvCeD From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Support Opensource , Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org Subject: [RFC PATCH 2/9] watchdog: da9055_wdt: don't print out if registering watchdog fails Date: Fri, 4 Oct 2024 22:03:05 +0200 Message-ID: <20241004200314.5459-3-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241004200314.5459-1-wsa+renesas@sang-engineering.com> References: <20241004200314.5459-1-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The core will do this already. Signed-off-by: Wolfram Sang Reviewed-by: Guenter Roeck --- drivers/watchdog/da9055_wdt.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/watchdog/da9055_wdt.c b/drivers/watchdog/da9055_wdt.c index 389a4bdd208c..9d5a2009466f 100644 --- a/drivers/watchdog/da9055_wdt.c +++ b/drivers/watchdog/da9055_wdt.c @@ -146,12 +146,7 @@ static int da9055_wdt_probe(struct platform_device *pdev) return ret; } - ret = devm_watchdog_register_device(dev, &driver_data->wdt); - if (ret != 0) - dev_err(da9055->dev, "watchdog_register_device() failed: %d\n", - ret); - - return ret; + return devm_watchdog_register_device(dev, &driver_data->wdt); } static struct platform_driver da9055_wdt_driver = {