Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1065031pxu; Mon, 23 Nov 2020 10:42:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZ4ld8QVvjR/AN6dJii8oLGkQDr/UKsbdZSINujaT0c4bacoeipQOEnFyFLXNNE2keI+dp X-Received: by 2002:a50:c28a:: with SMTP id o10mr532025edf.222.1606156923141; Mon, 23 Nov 2020 10:42:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606156923; cv=none; d=google.com; s=arc-20160816; b=CkAN0tWN5lP77AYeLjjHwK3ZIDt7ya8F3mdkw+HeRNCJl29U8/rGU+ToIhLf9fzEdc lxUuAUfHGsOO3+PxopMh2CxHUZkzM/SP+isMheqOSnsvK9VI/wPpDCUyR1ydRQtStwEi M1/3CJOK71SQH+CzUIImk9lHSCixX6orUeWH95qE3U8qzyXD1qljHQxzDVk3D6m6/6J6 vBsNBvtvU5QZgUqHwsxMGSul0dLqMOjVWJG7e+S+gJdaLJh0Q5E1miyUjS2lyJqzHBUV 5cl4kS3FJeDnUUizqURgLH1Y8hzP2tDBSz965DFonGRws9Re3d4tnS5hUlIwRXymkCKX WmFQ== 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=EYsm8+f9+Mft4xW4wkaQJDfk+zBa5+a9uMl8KVPYsts=; b=qB+xZn8oADiBhxtOrrTmeaXYD3Ac/8GeVVnx02hyYKDrnZe9/ZSq4zFeZ5BSAVmLQY QEqSyEbfEqXCGCspw6OZeKlN+LDsNrk+gW2Ab10FiJ/eMm8/HSJ4c4zSLXneLrnOfacI sDSzfxbT7HUnDH92NAGBfT4Vv3DQNIzAV7t6RbEIJBgApoy5Yv4adJtXN8QEnFiA4pm2 mKopbjc/09dFcrpdM1Q4/pFzf2L/NBuqJnKeOwCjjaC4oCGqK16QMhnQ2UWVWh4WrKq1 VafwQPb0x5ZIxy4yKgBpBBRBR7kjqCKPpDw/5fc7Ewt+PIYiNmvUuVzXhQMJomEOUFaj FQpA== 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 h8si7189378edf.565.2020.11.23.10.41.39; Mon, 23 Nov 2020 10:42:03 -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 S2388818AbgKWSjN (ORCPT + 99 others); Mon, 23 Nov 2020 13:39:13 -0500 Received: from mx2.suse.de ([195.135.220.15]:59350 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726770AbgKWSis (ORCPT ); Mon, 23 Nov 2020 13:38:48 -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 93601AC98; Mon, 23 Nov 2020 18:38:46 +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 v5 05/11] reset: raspberrypi: Release firmware handle on unbind Date: Mon, 23 Nov 2020 19:38:26 +0100 Message-Id: <20201123183833.18750-6-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123183833.18750-1-nsaenzjulienne@suse.de> References: <20201123183833.18750-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