Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1200933pxb; Wed, 4 Nov 2020 02:42:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRwud2bRGTiY83fYsiyv6hkzD+OUKGj1QoPO+8mFOca8PO05D8v0CbEH6IBxc11sH1EI9j X-Received: by 2002:a17:906:1a14:: with SMTP id i20mr20352372ejf.422.1604486562214; Wed, 04 Nov 2020 02:42:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604486562; cv=none; d=google.com; s=arc-20160816; b=0FZwdIU3TRCxShF+X30X4D6fCqBMAqnym2gI9l5VtWGCzHu5HMKafUI+AKiX/vrJUO RsC4jGXWIuy3ffsNEmn3uvW0b0PUAyJy5Mcq56NFbaLyW7z43iDP9pAjCyY9p/BSdPwk 93bWgcwj9oqYLQ0SbTEd2CEJVnT6muzVJKdvzdUQgBl2KUg0WcV/mxs2byu6CDPHZuuA sbGGm0+1qNW///1S/IBzFiu0sc3u9YDEHwEIMjT/3GxOr/VTxwo3+N//Btj62ibVBQGo FSu5s9gfuBdEo4DF3RpOgo3Hqz3cV8BeBx9dsjRDLip8np5cPTAhgiYm9LQWOWDbl8fP MhOA== 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=YjJYDuwsGVuiH7qiy6ee7X7W9KOv8p4fKo400shVIG4=; b=x5u8N/699JQc50550yUgRDwQq3AV1+e6o68I6QAVTTkgx5sYLhhOFOJRtZmm71w5qk /5TZqmu5pT1HlE1lB58MWQ7CY2Y2SqfquPnD4HWK5N9W9F+pyXW5hFyUhvqzd+kWz2rF zoW6aO9HGvnlfFqzxH45u3odGiV8QV78uh3lixJ0NSmLLDCdddjZyGV6rGO9b7y3iklg 8YHwVXskvl2r05umoK3PdGbTRiwpkIhz+1+5lt/botapHzaBEdBecdZ58MOdBJ5TBCq9 +KUEgrDr8SvkIHcLu61xGcnTOQfQLbNxftNJP0VOjmfgfzPc4ojmfnY/2bOPVThEu1yZ ziAg== 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 m12si1022610edq.242.2020.11.04.02.42.20; Wed, 04 Nov 2020 02:42:42 -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 S1729899AbgKDKke (ORCPT + 99 others); Wed, 4 Nov 2020 05:40:34 -0500 Received: from mx2.suse.de ([195.135.220.15]:58606 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729752AbgKDKj7 (ORCPT ); Wed, 4 Nov 2020 05:39:59 -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 6B3D1ABAE; Wed, 4 Nov 2020 10:39:57 +0000 (UTC) From: Nicolas Saenz Julienne To: u.kleine-koenig@pengutronix.de, linux-kernel@vger.kernel.org, Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Nicolas Saenz Julienne Cc: linux-pwm@vger.kernel.org, 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 Subject: [PATCH v3 08/11] firmware: raspberrypi: Get rid of rpi_firmware_get() Date: Wed, 4 Nov 2020 11:39:34 +0100 Message-Id: <20201104103938.1286-9-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 There a no users left to the function as they all converted to devm_rpi_firmware_get(). Just get rid of it. Signed-off-by: Nicolas Saenz Julienne --- drivers/firmware/raspberrypi.c | 17 ----------------- include/soc/bcm2835/raspberrypi-firmware.h | 6 ------ 2 files changed, 23 deletions(-) diff --git a/drivers/firmware/raspberrypi.c b/drivers/firmware/raspberrypi.c index 74bdb3bde9dc..67f7105f3fd2 100644 --- a/drivers/firmware/raspberrypi.c +++ b/drivers/firmware/raspberrypi.c @@ -297,23 +297,6 @@ static void rpi_firmware_put(void *data) wake_up(&fw->wait); } -/** - * rpi_firmware_get - Get pointer to rpi_firmware structure. - * @firmware_node: Pointer to the firmware Device Tree node. - * - * Returns NULL is the firmware device is not ready. - */ -struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node) -{ - struct platform_device *pdev = of_find_device_by_node(firmware_node); - - if (!pdev) - return NULL; - - return platform_get_drvdata(pdev); -} -EXPORT_SYMBOL_GPL(rpi_firmware_get); - /** * devm_rpi_firmware_get - Get pointer to rpi_firmware structure. * @firmware_node: Pointer to the firmware Device Tree node. diff --git a/include/soc/bcm2835/raspberrypi-firmware.h b/include/soc/bcm2835/raspberrypi-firmware.h index 8fe64f53a394..eaa4e516e4c6 100644 --- a/include/soc/bcm2835/raspberrypi-firmware.h +++ b/include/soc/bcm2835/raspberrypi-firmware.h @@ -140,7 +140,6 @@ int rpi_firmware_property(struct rpi_firmware *fw, u32 tag, void *data, size_t len); int rpi_firmware_property_list(struct rpi_firmware *fw, void *data, size_t tag_size); -struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node); struct rpi_firmware *devm_rpi_firmware_get(struct device *dev, struct device_node *firmware_node); #else @@ -156,11 +155,6 @@ static inline int rpi_firmware_property_list(struct rpi_firmware *fw, return -ENOSYS; } -static inline struct rpi_firmware *rpi_firmware_get(struct device_node *firmware_node) -{ - return NULL; -} - static inline struct rpi_firmware *devm_rpi_firmware_get(struct device *dev, struct device_node *firmware_node) { -- 2.29.1