Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp651221pxu; Fri, 11 Dec 2020 10:51:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxZH4XPGeaPsIj6h8shcyyUXRC9YlGV8f6rUcQt7pJHWWiMN5XOkSJVfzCKHIQTktjlnad X-Received: by 2002:a17:906:33c4:: with SMTP id w4mr11741815eja.380.1607712672627; Fri, 11 Dec 2020 10:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607712672; cv=none; d=google.com; s=arc-20160816; b=mOfeePhBnvTOA4b71rXNhx0KyDu773APUpx6Ath0D+VVekE3LV7j8WQlU9KYrlqBFV TDPXXYrWbI2B9CzLJJuFcHQRfnmybWPzgbFWpoHULicMbWUnehnGo34BVA3yUf4Y0KQm Ykf8Aj7wUKA3PHc7m7BnWD78irJ8aa6MRTOJqfwr392qEmXoJiFMtyljdUQb9YcXcbca eEQQENna7tx3ThLM/eL9YWr3sp87HJZT9Md7NrY7mCI5Bp+C4K/nUIU02v/LGy4sIJMG uFrzu6SpWO/0+dGFZpd8h3y5Lw8ZmRN/gQbjU/Ia6L/AXIWMx9sjNku15wzvUCS7fPnL Kurw== 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=jcnfaxUsJAjW1sN5wFargreuyaP2oVEXqo/Lcs+bi6I=; b=OZLNUB4cg+68oO5kQsDAHfs818GzUNNEvuNdIl9cNUi8wItgyKud9EmhTBRzQnw8Z0 QIk5h+lJ6+TIfmXId4dN5UpNK0yiV/VdC6KB2lRt/tbm5uJOq+kcetjdHCXkUcGYn6fG t2XN5kohagWkfaio2DY3uOFKF4fDD3dMXX9SPHaFBvBNEbhdkj7AIZDOukbWN9covkME +0PpIoF5dp87Dth7KKF+kCHjv0pCHcG05QHW6+Lxrv61dCQYK+i9pfVlHlGWan9t68JP wPmQOqDB+gqr2ZVlSrMQ6lwyCXFee3jmccRVz6oT3wp5RmJGjI1PNxTqj89Kwqe94P+k 5A+w== 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 co1si5458047edb.571.2020.12.11.10.50.47; Fri, 11 Dec 2020 10:51:12 -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 S2389489AbgLKQvN (ORCPT + 99 others); Fri, 11 Dec 2020 11:51:13 -0500 Received: from mx2.suse.de ([195.135.220.15]:34798 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390079AbgLKQtc (ORCPT ); Fri, 11 Dec 2020 11:49:32 -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 1322FB16A; Fri, 11 Dec 2020 16:48:14 +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 v6 05/11] reset: raspberrypi: Release firmware handle on unbind Date: Fri, 11 Dec 2020 17:47:54 +0100 Message-Id: <20201211164801.7838-6-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 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 Reviewed-by: Florian Fainelli --- 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