Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1737861imn; Sun, 31 Jul 2022 20:27:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vsROnqHdhc0W6EVE+thpUP/1WQVQAJF4dynMvsYytPMzaxrvO9LZTDadVcVoIR5aAx404K X-Received: by 2002:a17:907:3e07:b0:72e:e1e2:1415 with SMTP id hp7-20020a1709073e0700b0072ee1e21415mr10978092ejc.596.1659324447507; Sun, 31 Jul 2022 20:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659324447; cv=none; d=google.com; s=arc-20160816; b=Ahi2Ec9kmBf5Y7BEvYTgBUUZtpl6fNVPIR3vdS74P0rRsbx9iE3np6GGZmNRARG6vL kdImYGnc5AD45GBk81yN/AK1sDSJpubR/9cMWhqtN1trcsxZ5u5mm3Y5E96VUcsUOG4c /nhWPmpxc4njUOIi32b7WQWQf8HXCq+9KB0WKDJ8CuFtmdlMcuIn0BuuB2jM87J95Ec/ u/NOEv2FZgvwYYcm+EhAO1seiA8hTrVFUG2uizL0O1HM3PTN7h4vXRPeNQ06GexgMBrp zUpfSUWH9IWxaOgkXa7DilXE3J7OKgUuLYGp5yqT0ulbrgfS9gM39bGlUt/vkZgEkPBG LAig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=h34Ry2Qbm+JLSCIksskiScGwT/NymQyvjDKTXtJKZns=; b=TwcWm4bnp4gRhjvRqJaea7LYQlYZkbLakXBUmPtTvM9WbOIb4IyJj+gLr8PZAFzNLV FHAkbL8y2biX8I/SSCIQgpJ/5fdk6AXQCiK6DC267oGfdqHj5nwZg35j5a0IpNwAS7y5 94aFwm5c4Rn01zaliaR/qUdb4MD/kX/zxOyiMnlcg0epo+Hhp3CGpHwHhx5xpvhdXWs9 gdlTqnMO8KVDwY7HoMfA3jh4jFsYzsfGdSeuF9RyuzYxDsNHudi94LicR8DKHFTneg8s Ewh9FpvklGillz0cdm4BjqbKbO33L3yaONHXsR2EB4OlW5tn9XQhfkUfmMuwxQnTPvfO FZtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=YiywAwXi; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Jx7fvcr2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j21-20020a056402239500b0043d3f9c358bsi6098490eda.49.2022.07.31.20.27.00; Sun, 31 Jul 2022 20:27:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=YiywAwXi; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Jx7fvcr2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239629AbiHADF6 (ORCPT + 99 others); Sun, 31 Jul 2022 23:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239530AbiHADFf (ORCPT ); Sun, 31 Jul 2022 23:05:35 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FE026471; Sun, 31 Jul 2022 20:05:33 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 81D5232007D7; Sun, 31 Jul 2022 23:05:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 31 Jul 2022 23:05:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1659323131; x=1659409531; bh=h3 4Ry2Qbm+JLSCIksskiScGwT/NymQyvjDKTXtJKZns=; b=YiywAwXiZXmSrasDvP dZrZpGxisYNG+ohJ3JzQbBGMGlDu5syc5x2UlBNH2hrrLZ0z8zUDJRrNOb6gFHQY 9P694EqS1/30Oq4Lbv+svTzebq2UBa6tHt+BrGJNFJXj1wiE33A3JIiENuxCvqGm T6+koEFAdysIaXcOBC7b0x6tylAaN5LEF58VUtMlnTnaf+SiKO3PkLGlnUVO+ZTe UsYuFMH6tJlL8kVjl+dhf0nqlf9ymxkVCAsZgIarqYm5/1xyCxKt73F/ridl2L0M u1fHdLMrGFaiknWtUh2tAUQF8FarvsZiziYWV9ydfrI2P3ZtYfJ9mtWsa26EoLO6 5Z8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1659323131; x=1659409531; bh=h34Ry2Qbm+JLS CIksskiScGwT/NymQyvjDKTXtJKZns=; b=Jx7fvcr2/I3/hALlklGMX87ed38aC N9o5PHjS13LbfNXvkYhVMnNN7LY16vqBtKsRAfFeAp329yZgvx0OZDnFxDWh3NE7 va6gJZ+R3dFHam/WwUkKv+oZgWz8Vp8E8mdB9/EejFnis8T2ZDpy+NDRooWYXrnP NS9pqiPNeidcUaPxkKEWP6+UCXLYdjKlr55RjhDSmbgZ0GRpuGuBKkkf1JhYU56r I/uwNFQpQ4dVafnUltw1cVAzs98bQ+J0katfFNDjWCumvqkcRxAPZD05SyhNzke/ pWMQOScWJBPzY5A9LiMGALZSdVVrLCgFgv/O3wjVQQeYU062xkUI1mpmA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddvvddgheejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepudekteeuudehtdelteevgfduvddvjefhfedulefgudevgeeghefg udefiedtveetnecuvehluhhsthgvrhfuihiivgepfeenucfrrghrrghmpehmrghilhhfrh homhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 31 Jul 2022 23:05:30 -0400 (EDT) From: Samuel Holland To: Chen-Yu Tsai , Jernej Skrabec Cc: Samuel Holland , Arnd Bergmann , Hans de Goede , Icenowy Zheng , Krzysztof Kozlowski , Maxime Ripard , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH 6/9] soc: sunxi: sram: Return void from the release function Date: Sun, 31 Jul 2022 22:05:06 -0500 Message-Id: <20220801030509.21966-7-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220801030509.21966-1-samuel@sholland.org> References: <20220801030509.21966-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no point in returning an error here, as the caller can do nothing about it. In fact, all callers already ignore the return value. Signed-off-by: Samuel Holland --- drivers/soc/sunxi/sunxi_sram.c | 8 +++----- include/linux/soc/sunxi/sunxi_sram.h | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c index 09754cd1d57d..9622fd45f5e5 100644 --- a/drivers/soc/sunxi/sunxi_sram.c +++ b/drivers/soc/sunxi/sunxi_sram.c @@ -261,25 +261,23 @@ int sunxi_sram_claim(struct device *dev) } EXPORT_SYMBOL(sunxi_sram_claim); -int sunxi_sram_release(struct device *dev) +void sunxi_sram_release(struct device *dev) { const struct sunxi_sram_data *sram_data; struct sunxi_sram_desc *sram_desc; if (!dev || !dev->of_node) - return -EINVAL; + return; sram_data = sunxi_sram_of_parse(dev->of_node, NULL); if (IS_ERR(sram_data)) - return -EINVAL; + return; sram_desc = to_sram_desc(sram_data); spin_lock(&sram_lock); sram_desc->claimed = false; spin_unlock(&sram_lock); - - return 0; } EXPORT_SYMBOL(sunxi_sram_release); diff --git a/include/linux/soc/sunxi/sunxi_sram.h b/include/linux/soc/sunxi/sunxi_sram.h index c5f663bba9c2..60e274d1b821 100644 --- a/include/linux/soc/sunxi/sunxi_sram.h +++ b/include/linux/soc/sunxi/sunxi_sram.h @@ -14,6 +14,6 @@ #define _SUNXI_SRAM_H_ int sunxi_sram_claim(struct device *dev); -int sunxi_sram_release(struct device *dev); +void sunxi_sram_release(struct device *dev); #endif /* _SUNXI_SRAM_H_ */ -- 2.35.1