Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1202074pxb; Wed, 4 Nov 2020 02:45:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyoK0QLjWFRZROkwQfTkkTFhTinuXd7aWfma+gpJpauQAYm8aMcZduNk3JxcwaLrk0P1fIj X-Received: by 2002:a50:9e86:: with SMTP id a6mr12310603edf.238.1604486702538; Wed, 04 Nov 2020 02:45:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604486702; cv=none; d=google.com; s=arc-20160816; b=ebIQS8Wn8dVKRMMESWucxYTxNiLPwxhP04n4BaA2+MovPo/jjLEokttV45LCW1ANLe o6aYj87mnr/nHnMpFeLyyluCtGEq3B4Futvgav5GUcGoK0FYaCnTheMGa/tm74CybuKB 7LEAwuL6ldsnhLijwCDJMdIw5b8SYA4B2J5HsdDxOuevT+IqF6kh2LdHyt133/I3cGiI ykjXGNA0Uz0U8K/QrorxEyikVIgkCVkshV76rHxRfnv3Mzqe5hvBoanozmQ4cKtrjHnL Q2rJSW6k2zq1RmvKCHt1eq6hwZ0XdF2G/70sTfn6xK68J4f1n78QuBC4ekak7E6pipM0 5T7A== 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=ODHmpLB7Guw2OhNxNN1I9/JzjTxsXgajLb67PQxDEXI=; b=eAG27uX4RI0EnVU+xdruGAG99H7ncHb541mHXkHXrNo1dRiTJR4b3AIfG4nXRt1W39 0RsTdUY4O0pwrIeE2J+aeLqD0NlX/AP8qGls2jSdH12JXqqozJ1TJLxRr/2ELVGU+SMb i9HxaF2B3ii1TCNhj36JXfmrRl069XMVtf/WuL1MRz8f/1duA66h7lgAXTQ4O/8S0DjU cC+8MPPUJu8Z12EWt/ixw9p+uB0HX5jyfFF2kKrlmvAbEwRcnwjZsV2y79wBC6igqlLh mPMiDLM3PBCwEFHLr7jgb523Ig3SG+47ViGeS+TpS7TiG3MHSzouyUeCTmD/0epEhvnK TgAA== 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 h25si1111020ejc.209.2020.11.04.02.44.39; Wed, 04 Nov 2020 02:45:02 -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 S1729919AbgKDKkq (ORCPT + 99 others); Wed, 4 Nov 2020 05:40:46 -0500 Received: from mx2.suse.de ([195.135.220.15]:58730 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729655AbgKDKj6 (ORCPT ); Wed, 4 Nov 2020 05:39:58 -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 1C6DEAE35; Wed, 4 Nov 2020 10:39:56 +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 v3 07/11] input: raspberrypi-ts: Release firmware handle when not needed Date: Wed, 4 Nov 2020 11:39:33 +0100 Message-Id: <20201104103938.1286-8-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201104103938.1286-1-nsaenzjulienne@suse.de> References: <20201104103938.1286-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use devm_rpi_firmware_get() so as to make sure we release RPi's firmware interface when unbinding the device. Signed-off-by: Nicolas Saenz Julienne --- 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..efed0efa91d9 100644 --- a/drivers/input/touchscreen/raspberrypi-ts.c +++ b/drivers/input/touchscreen/raspberrypi-ts.c @@ -134,7 +134,7 @@ static int rpi_ts_probe(struct platform_device *pdev) return -ENOENT; } - fw = rpi_firmware_get(fw_node); + fw = devm_rpi_firmware_get(&pdev->dev, fw_node); of_node_put(fw_node); if (!fw) return -EPROBE_DEFER; -- 2.29.1