Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp650112pxu; Fri, 11 Dec 2020 10:49:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzNgAm1OkGYkE2Pl5JxHrYv7QF3xAm4r9R/c6/nE4huEPhJPb+qZOMEpxgPcwEe5CUg7ljt X-Received: by 2002:a05:6402:158:: with SMTP id s24mr13763572edu.19.1607712551693; Fri, 11 Dec 2020 10:49:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607712551; cv=none; d=google.com; s=arc-20160816; b=alj26noHEGTIX9St3i0QjwNjkumt/CKxvU9cScBu1KkjNdqTesY7D/sUnl01oOi49V CMMrJx6VSeMqBN/7ssZfT9/wce9IZEVtLVr6rpzavMJoIbmPVmxxAsPThXwgMPOPcSws 1c9mUROoBdmdTLpCF0+oysiFl6eAi1ce0HAmKVlCHZ2fRqB4bGrPjuVOErTljxHWMUPh qR9CdUFfn0ZOx8KyOQtPNYor3pAHmLuFg71G/Tquj96F31KhfwkaYxldN4hWlgkEBF2K 8vu+9bS6Cyoqrc1YNMjpTUKtVHbJ7Gj9tfaJVhuaf6cWvlyneoEk2oTniMwbrRCP5TG4 ih3w== 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; bh=5QlO76wHlYvLFCiBfTtM+DR3aIQOiokcLFom3cbsBM4=; b=GIIBo6QaW0Tja16ITgpZSfullZQjJHejvRwcXWPiRSsmH2xXZ++jdKerFafor4ux0y cSXRSfP4ohgVVVAcrKCoQK5kWDuLYvyFU1zHXRpJ1dxSfeo9TE3mcDQUvpWDMyxHEeHa IhDY5veyxXWvnGh6qrSOSu9mL79QT/v7zabsStMW9rS8HDZ/0vgoWf+7slxLKBPa+MP9 u/vMN3pidntxEWMiIlRbee3TFUzFwE/P4dTvqJNxNci1Sa89miciuM84V2ZuxbldFO+l 0rkDpTAyoFaSz/tduZl3FmOC2I6DG41smUtxJV8YTN9A7O+pBohid2lqukavhDaDYvZ5 sxLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f5si4936961ejw.117.2020.12.11.10.48.46; Fri, 11 Dec 2020 10:49:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390228AbgLKQuW (ORCPT + 99 others); Fri, 11 Dec 2020 11:50:22 -0500 Received: from mx2.suse.de ([195.135.220.15]:34832 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390150AbgLKQtd (ORCPT ); Fri, 11 Dec 2020 11:49:33 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B54A0B273; Fri, 11 Dec 2020 16:48:17 +0000 (UTC) From: Nicolas Saenz Julienne To: u.kleine-koenig@pengutronix.de, linux-kernel@vger.kernel.org Cc: f.fainelli@gmail.com, linux-pwm@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, wahrenst@gmx.net, linux-input@vger.kernel.org, dmitry.torokhov@gmail.com, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, p.zabel@pengutronix.de, linux-gpio@vger.kernel.org, linus.walleij@linaro.org, linux-clk@vger.kernel.org, sboyd@kernel.org, linux-rpi-kernel@lists.infradead.org, bgolaszewski@baylibre.com, andy.shevchenko@gmail.com, Nicolas Saenz Julienne Subject: [PATCH v6 08/11] input: raspberrypi-ts: Release firmware handle when not needed Date: Fri, 11 Dec 2020 17:47:57 +0100 Message-Id: <20201211164801.7838-9-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201211164801.7838-1-nsaenzjulienne@suse.de> References: <20201211164801.7838-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no use for the firmware interface after getting the touch buffer address, so release it. Signed-off-by: Nicolas Saenz Julienne Acked-by: Dmitry Torokhov --- Changes since v5: - Correct commit message Changes since v3: - Release firmware handle in probe function Changes since v2: - Use devm_rpi_firmware_get(), instead of remove function drivers/input/touchscreen/raspberrypi-ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/raspberrypi-ts.c b/drivers/input/touchscreen/raspberrypi-ts.c index ef6aaed217cf..5000f5fd9ec3 100644 --- a/drivers/input/touchscreen/raspberrypi-ts.c +++ b/drivers/input/touchscreen/raspberrypi-ts.c @@ -160,7 +160,7 @@ static int rpi_ts_probe(struct platform_device *pdev) touchbuf = (u32)ts->fw_regs_phys; error = rpi_firmware_property(fw, RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF, &touchbuf, sizeof(touchbuf)); - + rpi_firmware_put(fw); if (error || touchbuf != 0) { dev_warn(dev, "Failed to set touchbuf, %d\n", error); return error; -- 2.29.2