From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 286AC3C0BFF; Sat, 28 Feb 2026 17:39:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300360; cv=none; b=L0Q3Z2urENMoJRPnCVJOlBKTsm1JGgWDZ+pciQHoTE/at17+p1DbomZ3pifZ4hCa37hESMToCBN8+wweYqURkHIZGjfarEnMdEFMIKeiq9DwBX36nrGU2pZIv8hJQOyBAgJlvfhtANzdaWi38VIxR+uimi8nIk0aCt26z8YvOsk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300360; c=relaxed/simple; bh=FTwb94O2+0BWU/8PxjRoKtacny9TIv5c8a1PPMB4qto=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=K32CX5q3yEOgqJONElNSGX5wyELjqomN7wiyR6pUJoX2c2JxnkW/ZWok/QAa6Slh9+KeHrTyhCjFpP4Kk/U/VWsLRewPmTM2Z1bOAWQxnrXlttZV2QXVc8XwnnlZ+9CiEqAHh//ceFXomrIaychdosS8O9A3KIrXzipgyryZlUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=N1vNGUpc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="N1vNGUpc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F066C19424; Sat, 28 Feb 2026 17:39:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772300360; bh=FTwb94O2+0BWU/8PxjRoKtacny9TIv5c8a1PPMB4qto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N1vNGUpcSJW6+xh/3R/bPE9wer+EqlmykeiUy1dgk4yJvMlhDUOgIyqa0s2xLKyC3 BR3w0N7s61OF0dUSeoq+Ly0BgIg5sbigcVCRFO5sc6PjjFrX+nw09N5V34Gr6ejH68 5BqAGy/OyY5bzaaqMIIP+y3ypF2KJWpVccRlZ+P4vASAw4DE9h3gynV1vXCCgCQua1 QA9NpP27ygyIGpExKD+jwZVgSbJS8DfKnEbO3pAY30GCdYFkF5HCLr9Qkzo+kVAnMC uJHNxAlfgnOL0xM3FBWbRyB+LyyUARk5otIo60G9a/jvAGN2Jdj6xXwX8VBROVGPjb qa1tf/AI6HPSw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "Rafael J. Wysocki" , Guenter Roeck , Wim Van Sebroeck , Sasha Levin Subject: [PATCH 6.19 394/844] watchdog: rzv2h_wdt: Discard pm_runtime_put() return value Date: Sat, 28 Feb 2026 12:25:07 -0500 Message-ID: <20260228173244.1509663-395-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228173244.1509663-1-sashal@kernel.org> References: <20260228173244.1509663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: "Rafael J. Wysocki" [ Upstream commit 2dea984a74265a67e3210f818416a83b87f70200 ] Failing device probe due to pm_runtime_put() returning an error is not particularly useful. Returning an error code from pm_runtime_put() merely means that it has not queued up a work item to check whether or not the device can be suspended and there are many perfectly valid situations in which that can happen, like after writing "on" to the devices' runtime PM "control" attribute in sysfs for one example. It also happens when the kernel is configured with CONFIG_PM unset. Accordingly, update rzt2h_wdt_wdtdcr_init() to simply discard the return value of pm_runtime_put() and return success to the caller after invoking that function. This will facilitate a planned change of the pm_runtime_put() return type to void in the future. Signed-off-by: Rafael J. Wysocki Reviewed-by: Guenter Roeck Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck Signed-off-by: Sasha Levin --- drivers/watchdog/rzv2h_wdt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/watchdog/rzv2h_wdt.c b/drivers/watchdog/rzv2h_wdt.c index a694786837e11..f9bb4ef3d327b 100644 --- a/drivers/watchdog/rzv2h_wdt.c +++ b/drivers/watchdog/rzv2h_wdt.c @@ -270,9 +270,7 @@ static int rzt2h_wdt_wdtdcr_init(struct platform_device *pdev, rzt2h_wdt_wdtdcr_count_stop(priv); - ret = pm_runtime_put(&pdev->dev); - if (ret < 0) - return ret; + pm_runtime_put(&pdev->dev); return 0; } -- 2.51.0