Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp340716pxb; Thu, 5 Nov 2020 01:11:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWwrD0lqkNP+yo/9axxylLd1WcI+bKtldnPxNHhtaJBGzKzx7thgbCY1P4jGXWMFF2SO/8 X-Received: by 2002:a50:bf41:: with SMTP id g1mr1509114edk.165.1604567486289; Thu, 05 Nov 2020 01:11:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604567486; cv=none; d=google.com; s=arc-20160816; b=LrdBeapgZ6cboNrimo+kBd8qJYXlO9oh83fTQkWZSz8WXjcRYQadhpiykdYRejy218 hx+hQQu9a4/4fWFE/AwSey2+B+HEHk57e8XOHVcL47Lo85jZYcAhpRl+bDxoL1XiT1wx CO1OkZ37Ed6W0W0PlYj2BBZlgsLbRTSofgOy30KR28rFss7puXbzXwNOVwl+Vz/tlVfp oCAReufCaDLvEO42oBVWhyOIkHjtFLedRQwN55kPmJE3uYOtDTT6lKsPxB2hYF7gvY38 HsRSguiaVtBoUpPyTB+l4J2ZY0DAvMZ2rnLf2nkjGOwI3i/XitHdY2SGqCjOf7Qy2Dok jENA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=DAVVTcqOtshkqa//jG0tMqJnAZn8lkJ/jC3ZQlpD4iI=; b=Af1cX7XqoWvVrgHmLgMm6ZnOyFwcGdqA/1eNOMgL1iKuOcw8OlRthOB9ZblfJxCEP6 Mh8iiXmjl7bkhBx04w0IPDtJzjYfejLIsNk6C2V4pDDdX/TV+qJ4WQ6Uqu+gbSAfnZLz b6SIkqKc+c7S7Q6qQzWwgSl5Rs5kaQ3ZzQu+KbWoHdyAssa7DGJDm7ree8PZHPmjpLxy suUz2vweerpQHy5SqDnLcHrSRoh6MmaK9bF1vUEsnAVthROaW9F4gm5HETOXtxxxF1PP GLNYXQS8X+W6fZALvclHaGdFlBf75veq3rA7VSZBhMr5XxvZxynSIOcM7nXaL7mwjWab 0dBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gnCWxb3A; 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 mm25si632588ejb.610.2020.11.05.01.11.04; Thu, 05 Nov 2020 01:11:26 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gnCWxb3A; 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 S1729977AbgKEJJM (ORCPT + 99 others); Thu, 5 Nov 2020 04:09:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726756AbgKEJJJ (ORCPT ); Thu, 5 Nov 2020 04:09:09 -0500 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBA60C0613D6 for ; Thu, 5 Nov 2020 01:09:08 -0800 (PST) Received: by mail-ed1-x542.google.com with SMTP id j20so722889edt.8 for ; Thu, 05 Nov 2020 01:09:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DAVVTcqOtshkqa//jG0tMqJnAZn8lkJ/jC3ZQlpD4iI=; b=gnCWxb3A2YT1XunheHSuiLH9SajfLtYxFoSSt/SMRqAjsx1al/ZDjdmGmdcaRCgATD VjIP7kiSbjNExGEXiLiKkUKac6IoHWJ/Fimd03ck22Y3TV8a4rMz01X4WGQkmlH9oyFA 9esubFwVfP/2m1vKPl5C03O/MKjH3usvIu/M/u1jCtkmZsVaRlPUI4GOMG2G25yqE1WE FkwCiZzuIp80ijwg2sDMrq/aDxArFsCDn2GSr7ejg4GkjzXoXRmPg7sE+KMD8rfx5UT2 P0rDV2vx/4uXjrJDE1VHH5s96ArZURV9t0QiVse/pLv22O/+my2jfZQspbaaigUdqAgS xSDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DAVVTcqOtshkqa//jG0tMqJnAZn8lkJ/jC3ZQlpD4iI=; b=QCScl6E2orEUMK7d+GDsND/40acOO+uxt6D+h8PTDlj3HjIw9J9KCFsWGC7Dys2LA9 i9lVd707nhNhKW/iNnUh+xrH+s6CZuuSZ6OLjmXJSkqZ0fR+tfhyZ1CB4RHZ/v8gUOId ZXfl4BFJ25hyhn1divR31R8N/JxKLg2SJMKViFhQiECQVGc0yiZU7VBOXyGAmgvNXAn0 Q3lZh6cO2s+jyEVyl4k48hYdE3e+OEQ2jhUShicz8MLeb3TCRe29DU8yT60U6MCvwI5d xIhMObiYM7wRFHyZ0Allg0MQarvdNLvlGP+bb0Bg0pQL8VNwsOxXksbkNn31kLR+vucO Fc6w== X-Gm-Message-State: AOAM530Z/m8BCzEZH4aT0qFQNklVTTVHzY/BoxbiipfY2akqClPMJwPN Xb2Ey9z/hxCiSIbyxqy6TNRMaZRmTlycjSBiS74kww== X-Received: by 2002:a05:6402:283:: with SMTP id l3mr1593849edv.232.1604567347374; Thu, 05 Nov 2020 01:09:07 -0800 (PST) MIME-Version: 1.0 References: <20201104103938.1286-1-nsaenzjulienne@suse.de> <20201104103938.1286-4-nsaenzjulienne@suse.de> In-Reply-To: <20201104103938.1286-4-nsaenzjulienne@suse.de> From: Bartosz Golaszewski Date: Thu, 5 Nov 2020 10:08:56 +0100 Message-ID: Subject: Re: [PATCH v3 03/11] gpio: raspberrypi-exp: Release firmware handle on unbind To: Nicolas Saenz Julienne Cc: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , LKML , Linus Walleij , Florian Fainelli , linux-pwm@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, arm-soc , linux-devicetree , wahrenst@gmx.net, Linux Input , Dmitry Torokhov , Greg KH , devel@driverdev.osuosl.org, Philipp Zabel , linux-gpio , linux-clk , Stephen Boyd , linux-rpi-kernel@lists.infradead.org, Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 4, 2020 at 11:39 AM Nicolas Saenz Julienne wrote: > > 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/gpio/gpio-raspberrypi-exp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpio/gpio-raspberrypi-exp.c b/drivers/gpio/gpio-raspberrypi-exp.c > index bb100e0124e6..64a552ecc2ad 100644 > --- a/drivers/gpio/gpio-raspberrypi-exp.c > +++ b/drivers/gpio/gpio-raspberrypi-exp.c > @@ -208,7 +208,7 @@ static int rpi_exp_gpio_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 > Acked-by: Bartosz Golaszewski