From patchwork Tue Dec 12 17:26:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 13489727 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA073C4167D for ; Tue, 12 Dec 2023 17:27:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=YjL37zC36j1rGCs/wbvpPtG2z/bPbb7dJdl50tK/GYA=; b=k29nWyQKabte2Q ABHoJ9A5pHD31vJNJvOmROcXEurFtOVndNyykZ1t8V4TnuTm9SNFxOF0y2PElQuD8tgwMzLUNOTzp sPBB4+WCEKwBBIT35c0dsJoddfbzjkfPQZ+z/ReK/if99mEgmfsj/502AlaZRJGmr1PdGJ0G/XKoM Khmm5SFc1BJOyQL6WMVevqGZlI33oZUFjQ9d0PXn1BGZ+fUegYGi29dA5uBgVeLOBrpeIQdTi33xu l5dn/p/AXjhjdxhQHmyGXLmZ67WwJ4z7oyptSl+ngzP5M9EEKQS97sd9SP87zGrkp1+/ZjMHe9HyN Mn/oeYVd7JaLVZeEAaDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rD6XS-00CNtW-1H; Tue, 12 Dec 2023 17:27:22 +0000 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rD6XL-00CNpu-0n for linux-amlogic@lists.infradead.org; Tue, 12 Dec 2023 17:27:17 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rD6X1-0001uM-3O; Tue, 12 Dec 2023 18:26:55 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rD6Ww-00FOPD-7r; Tue, 12 Dec 2023 18:26:50 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1rD6Wv-001nbR-TA; Tue, 12 Dec 2023 18:26:49 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Michael Turquette , Stephen Boyd , Russell King Cc: linux-clk@vger.kernel.org, MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Neil Armstrong , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , dri-devel@lists.freedesktop.org, linux-amlogic@lists.infradead.org, Krzysztof Kozlowski , Thierry Reding , Jonathan Hunter , Rob Herring , linux-tegra@vger.kernel.org, Johan Hovold , Georgi Djakov , kernel@pengutronix.de Subject: [PATCH 0/5] clk: Make clk_rate_exclusive_get() return void Date: Tue, 12 Dec 2023 18:26:37 +0100 Message-ID: X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1256; i=u.kleine-koenig@pengutronix.de; h=from:subject:message-id; bh=fuoORCWhYYOP5RXKuGpiS7lr3Z2yTHsOYZlk6CpCKEA=; b=owGbwMvMwMXY3/A7olbonx/jabUkhtSK6WeM9Jn7Sit136VzF7/4ma2nGmm+cYH0TcGD7l/qr yVKuzt0MhqzMDByMciKKbLYN67JtKqSi+xc++8yzCBWJpApDFycAjAR9kYOhtn5K8o/uh43Cy40 8V1Z6qUks+9F+Hz+mPwpC8x2/X3J+dPhJue5kGwr0UQRoQir41eF5Cbfly35tGQV0xdVe61lmYf 6XCb6C8mqch9lc3PV01l46mG7/OMdX49+Kvm5uNTA6t3Ds9cnWj/a7eNx9WW4ioOO8pXgbRkJ+R 5N0UsOt7geZzFR/ODedeTL+/PyEcIv06YKmi+K2anHpJjy1vyL47PCSWLsM+I7p1aG/D1/nXlex t+VibUmv/X6lnxq7OGKm9Z6s/3Qv+6Dd+yPSipG7rLPVq4xS13pJC17v5Ezzp/f7srJGKUwncIl fyLuqUhe4O2/kbC0OFf5kX7ugovH10Ud+5H3oq872CsBAA== X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-amlogic@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231212_092715_280113_68E3EDF6 X-CRM114-Status: GOOD ( 10.14 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Hello, clk_rate_exclusive_get() returns zero unconditionally. Most users "know" that and don't check the return value. This series fixes the four users that do error checking on the returned value and then makes function return void. Given that the changes to the drivers are simple and so merge conflicts (if any) should be easy to handle, I suggest to merge this complete series via the clk tree. Best regards Uwe Uwe Kleine-König (5): PM / devfreq: sun8i-a33-mbus: Simplify usage of clk_rate_exclusive_get() drm/meson: Simplify usage of clk_rate_exclusive_get() memory: tegra210-emc: Simplify usage of clk_rate_exclusive_get() memory: tegra30-emc: Simplify usage of clk_rate_exclusive_get() clk: Make clk_rate_exclusive_get() return void drivers/clk/clk.c | 6 ++---- drivers/devfreq/sun8i-a33-mbus.c | 14 ++------------ drivers/gpu/drm/meson/meson_dw_mipi_dsi.c | 8 +------- drivers/memory/tegra/tegra210-emc-core.c | 6 +----- drivers/memory/tegra/tegra30-emc.c | 6 +----- include/linux/clk.h | 8 +++----- 6 files changed, 10 insertions(+), 38 deletions(-) base-commit: bbd220ce4e29ed55ab079007cff0b550895258eb