From patchwork Thu Mar 3 18:00:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 12767859 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7CACC433F5 for ; Thu, 3 Mar 2022 18:02:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WuNyMRLF10Mn0zCnkPE/wldR5xWSra2//XLmEOMX1yY=; b=CrDcHTCsRRHc2q ZbNt9m2iJj+PM1j6vKM0xazalaMZaXXgkAGhYQtdJcKBhrMsCTkel2efD2fi8upWfRyAxp2qPKoN6 zPXGEF6ENeAD5T/X/P/pc8MQssSLIryzohzYAp/on2WQrls/INlb6Tm/hH53a30ROQcAqBUXr+v8S 9hb+2tCG0+crEeTXKr3ZvrgTY8IqhB+nyCrq/rv+x6NU03Nq7kkAkv8dcNasRjPx/K8c0HZ8fviVY Ee0QE7zW52d7nb5adVLSq6OboiRj2rRQAjNljtnemJbt7XuuTsWImWmmKGnekz6ZIvpLo+LPSj+sK Myk71LGvrsRugMR+LXog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPplj-007Px6-0P; Thu, 03 Mar 2022 18:01:39 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPplA-007PnA-KA for linux-arm-kernel@lists.infradead.org; Thu, 03 Mar 2022 18:01:08 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2ACA5617C1; Thu, 3 Mar 2022 18:01:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88E04C004E1; Thu, 3 Mar 2022 18:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646330463; bh=04i2eZv5qTAuP3AEyiHIUhvzqHVYSg3BWxLhzLKqjlw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fThq9067ilo5VqJdZcN905SWb/WIOXTBNq9YhSAdlOjllMfhmm47DQpdfYhlMfTNK oTxJY9wqpBlz050G/bqoK6B65W9typ9QGvks4S0KOQBsE2GTSySHuKYoHYoagF4elI Do/f/sxE9cOLrCitJHgrSoAa6xuI9gb3rLbd0iVo6cO1TFxvOkGI5Y6WE5uKwj3Bak PEvshiZYoVt3vpz8qejgQdLM1O/EmF3VuHRRNZWVqVNDsZwX0N6CmXpC924l5wsu/s pmIXzeXQRtiv6LRmznrVoCaVzzw+8yXzIoyKdUxEbicv+8AVMU034LghLjDXL3XW31 M6yy5Of9aeS8w== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1nPpl8-0000io-7K; Thu, 03 Mar 2022 19:01:02 +0100 From: Johan Hovold To: Tony Lindgren Cc: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 1/2] ARM: OMAP2+: drop omap_device_register() helper Date: Thu, 3 Mar 2022 19:00:13 +0100 Message-Id: <20220303180014.2639-2-johan@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220303180014.2639-1-johan@kernel.org> References: <20220303180014.2639-1-johan@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220303_100105_161640_E42E864B X-CRM114-Status: GOOD ( 14.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The omap_device_register() helper is unused since commit 82f12e64a019 ("ARM: OMAP2+: Drop legacy init for sdma") and can be removed. Signed-off-by: Johan Hovold --- arch/arm/mach-omap2/omap_device.c | 17 ----------------- arch/arm/mach-omap2/omap_device.h | 1 - 2 files changed, 18 deletions(-) diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c index 56d6814bec26..3cfa7b01a24b 100644 --- a/arch/arm/mach-omap2/omap_device.c +++ b/arch/arm/mach-omap2/omap_device.c @@ -473,23 +473,6 @@ struct dev_pm_domain omap_device_pm_domain = { } }; -/** - * omap_device_register - register an omap_device with one omap_hwmod - * @pdev: the platform device (omap_device) to register. - * - * Register the omap_device structure. This currently just calls - * platform_device_register() on the underlying platform_device. - * Returns the return value of platform_device_register(). - */ -int omap_device_register(struct platform_device *pdev) -{ - pr_debug("omap_device: %s: registering\n", pdev->name); - - dev_pm_domain_set(&pdev->dev, &omap_device_pm_domain); - return platform_device_add(pdev); -} - - /* Public functions for use by device drivers through struct platform_data */ /** diff --git a/arch/arm/mach-omap2/omap_device.h b/arch/arm/mach-omap2/omap_device.h index f77e76a7841a..d607532cf5e0 100644 --- a/arch/arm/mach-omap2/omap_device.h +++ b/arch/arm/mach-omap2/omap_device.h @@ -71,7 +71,6 @@ int omap_device_idle(struct platform_device *pdev); struct omap_device *omap_device_alloc(struct platform_device *pdev, struct omap_hwmod **ohs, int oh_cnt); void omap_device_delete(struct omap_device *od); -int omap_device_register(struct platform_device *pdev); struct device *omap_device_get_by_hwmod_name(const char *oh_name); From patchwork Thu Mar 3 18:00:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 12767858 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E493C433EF for ; Thu, 3 Mar 2022 18:02:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DDZCf+AJ8KXhHSN+5dDrwwfmufJ6I9D7OZ5nsNCqvzE=; b=KJ1zouW10ed9fw WKmlEH437tg6ggUAhdBdKWHy8Xp2NpTaGL5Tqh7/x+K4WVGpB3AdokRcqP50oOr4tRg1dNi7Yfly4 7kDDHLvVJU+jExTc9Cp6tnLEVJ06iRV2zKzS2vBXoWqKH/P7z69RE3bykzKUNDK0E5wea5D8ozbEE Du9KmHjkKCuwyszmNVXWLyh8HqlkbTTH8aun0t7mekYIBKj5CuL3KwB3UcQI5GMPkCUGD2Rqa8nqb +P8plq3ZqbtZ6w0kWpLQZs13UNzYPSApSO9fY77t2TnOgEvuhwSJl8t8rw5KkAdgJzFVSPNE7gBQS nEt0d6YZbQxVbmokSgPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPplX-007PuC-7R; Thu, 03 Mar 2022 18:01:27 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPplA-007PnC-L6 for linux-arm-kernel@lists.infradead.org; Thu, 03 Mar 2022 18:01:08 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3F46A61924; Thu, 3 Mar 2022 18:01:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0E79C340EF; Thu, 3 Mar 2022 18:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646330463; bh=xGgnnVHyGleDpVkH9gkP5NrpsGASPkv/CJewUK6NLDU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JcO8OXDEAyL+U547uBOC8tTHMHCd+zP060n+yMQOOYLKkDW7vhWTYCZcQMDwossNu BIpKFOOxv8JWtfM4jVphHMuIVEv87l5eIWRVGUwYXo3p2Xciha+Zg8o8RP/Ha0T/20 EAQuHUdE700SSmrxIf7ggqU8y/5ZRDHrigKXam8cZ59D0LucvX3lxxipeOdVeG2VPZ sjjuaxa4diGeHMhw9e8Qw1MD393dESCFq8yOGHrlc3IK/lq3wFz2/gG5blDgjx1o2i 7RMv/WEJiK0XqoMtkpMl72YSn7UKOkgMLaNUnl6vLNs4Fv2IOf0CEIQALhduHgqIGX gg9nqfq2z+wlA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1nPpl8-0000iq-AF; Thu, 03 Mar 2022 19:01:02 +0100 From: Johan Hovold To: Tony Lindgren Cc: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 2/2] ARM: OMAP2+: drop hwmod-clock helper comment Date: Thu, 3 Mar 2022 19:00:14 +0100 Message-Id: <20220303180014.2639-3-johan@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220303180014.2639-1-johan@kernel.org> References: <20220303180014.2639-1-johan@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220303_100105_152359_9DC8760B X-CRM114-Status: GOOD ( 13.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Since commit a4f6cdb0672f ("ARM: OMAP: omap_device: Add omap_device_[alloc|delete] for DT integration"), _add_hwmod_clocks_clkdev() is called from omap_device_alloc(). Drop the outdated comment referring to how this function was used ten odd years ago. Signed-off-by: Johan Hovold --- arch/arm/mach-omap2/omap_device.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c index 3cfa7b01a24b..8b3701901991 100644 --- a/arch/arm/mach-omap2/omap_device.c +++ b/arch/arm/mach-omap2/omap_device.c @@ -96,9 +96,6 @@ static void _add_clkdev(struct omap_device *od, const char *clk_alias, * omap_device, this function adds an entry in the clkdev table of the * form if it does not exist already. * - * The function is called from inside omap_device_build_ss(), after - * omap_device_register. - * * This allows drivers to get a pointer to its optional clocks based on its role * by calling clk_get(, ). * In the case of the main clock, a "fck" alias is used.