Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp495002pxb; Thu, 12 Nov 2020 08:45:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGp9znFCAdPUlrISJ2rUiOKkcl+JqMrzesBdUqNapj+wLfNnUjBfuvtj+7ZsScHiCdc6Lj X-Received: by 2002:aa7:d4c9:: with SMTP id t9mr664859edr.313.1605199539654; Thu, 12 Nov 2020 08:45:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605199539; cv=none; d=google.com; s=arc-20160816; b=M4U+T+htH+ReVrAT+bwaIxnCYIOtojD4ooLJP0oKy8mvp0bw6ydk59l3NS+KtMdsMz oPqXB8JCdQYeLMEj1b2bTHZ6laKgSwzsyT7nYaRw7cfaZ7qlMmpgF2xXniaVAChhOp7G JYa9hCuzaorpO0nY/Vcgykr7nJy/slRDjGXmcU3ZP9rRCfqmTPA6K1NeK9M2X1rJm09A LBz+BhK1LLTLBSPpWQiuikmLAtdpwwDO1BC7Std/4Cw4EVFoxqLSpBWPPQRuyLQqDWg1 Z9DiaUEMwT7/nEN7TX3yfYx4uhT1u+9TPfi84fZPF2uFmyR8JVHb4PO8x+aZkf1hVLPd UuWw== 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=HQrjdvi+5nqhYbA+zJYg3zOXpSAr5W2XpnijRVoz2H8=; b=atmxWuBgfkX1x/m8cbqyVRq/zqR83nHWgCSu3KKGb7x5AXqDRlyWczVuGvLYT0/Qma QeRpV4hgBWapEgLHx8kyI2b3kuRsa+iCdQ7rtOK54c2hZmiI9KwM/9pF2mCKrW89EXdC eVwKQcOZM3cUl23IQXOe6Rg0ubkzcLUhaQHCpmdO0c1eUg5eKiWh5Gwx1D1z+QximjzS TRd3WTk33Tu6EHz4K8Y4//EFotnghwZp/5Y9qwV14XSra5yRySKeS/utWlYcaisd8xBD 4huFk2MyW+ape3zSzwY7B/S6PaRBbvrtCbcO2ZMIEVdwB6ntiMpNpW49pTwaBqqbjDRV IjXQ== 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 lw6si4184542ejb.295.2020.11.12.08.45.16; Thu, 12 Nov 2020 08:45:39 -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 S1729014AbgKLQoA (ORCPT + 99 others); Thu, 12 Nov 2020 11:44:00 -0500 Received: from mx2.suse.de ([195.135.220.15]:49198 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727739AbgKLQoA (ORCPT ); Thu, 12 Nov 2020 11:44:00 -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 9A345AB95; Thu, 12 Nov 2020 16:43:58 +0000 (UTC) From: Nicolas Saenz Julienne To: u.kleine-koenig@pengutronix.de, linux-kernel@vger.kernel.org, Philipp Zabel 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, 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 v4 05/11] reset: raspberrypi: Release firmware handle on unbind Date: Thu, 12 Nov 2020 17:36:23 +0100 Message-Id: <20201112163630.17177-6-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201112163630.17177-1-nsaenzjulienne@suse.de> References: <20201112163630.17177-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/reset/reset-raspberrypi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/reset/reset-raspberrypi.c b/drivers/reset/reset-raspberrypi.c index 02f59c06f69b..fa23db554bcf 100644 --- a/drivers/reset/reset-raspberrypi.c +++ b/drivers/reset/reset-raspberrypi.c @@ -82,7 +82,7 @@ static int rpi_reset_probe(struct platform_device *pdev) return -ENOENT; } - fw = rpi_firmware_get(np); + fw = devm_rpi_firmware_get(&pdev->dev, np); of_node_put(np); if (!fw) return -EPROBE_DEFER; -- 2.29.2