All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@kernel.org>
To: Jonas Gorski <jonas.gorski@gmail.com>,
	devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-mips@vger.kernel.org
Cc: Michael Turquette <mturquette@baylibre.com>,
	Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	Florian Fainelli <f.fainelli@gmail.com>,
	bcm-kernel-feedback-list@broadcom.com,
	Kevin Cernekee <cernekee@gmail.com>,
	Ralf Baechle <ralf@linux-mips.org>,
	Paul Burton <paul.burton@mips.com>,
	James Hogan <jhogan@kernel.org>
Subject: Re: [PATCH 2/3] clk: add BCM63XX gated clock controller driver
Date: Thu, 27 Jun 2019 13:43:17 -0700	[thread overview]
Message-ID: <20190627204318.828302075E@mail.kernel.org> (raw)
In-Reply-To: <20190502122657.15577-3-jonas.gorski@gmail.com>

Quoting Jonas Gorski (2019-05-02 05:26:56)
> Add a driver for the gated clock controller found on MIPS based BCM63XX
> SoCs.
> 
> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
> ---

Applied to clk-next with some extra fixes

diff --git a/drivers/clk/bcm/clk-bcm63xx-gate.c b/drivers/clk/bcm/clk-bcm63xx-gate.c
index 4fd10645a192..9e1dcd43258c 100644
--- a/drivers/clk/bcm/clk-bcm63xx-gate.c
+++ b/drivers/clk/bcm/clk-bcm63xx-gate.c
@@ -1,8 +1,7 @@
-/* SPDX-License-Identifier: GPL-2.0 */
+// SPDX-License-Identifier: GPL-2.0
 
 #include <linux/clk-provider.h>
 #include <linux/init.h>
-#include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
 #include <linux/platform_device.h>
@@ -20,7 +19,7 @@ struct clk_bcm63xx_hw {
 	struct clk_hw_onecell_data data;
 };
 
-const struct clk_bcm63xx_table_entry bcm3368_clocks[] = {
+static const struct clk_bcm63xx_table_entry bcm3368_clocks[] = {
 	{ .name = "mac", .bit = 3, },
 	{ .name = "tc", .bit = 5, },
 	{ .name = "us_top", .bit = 6, },
@@ -41,7 +40,7 @@ const struct clk_bcm63xx_table_entry bcm3368_clocks[] = {
 	{ },
 };
 
-const struct clk_bcm63xx_table_entry bcm6328_clocks[] = {
+static const struct clk_bcm63xx_table_entry bcm6328_clocks[] = {
 	{ .name = "phy_mips", .bit = 0, },
 	{ .name = "adsl_qproc", .bit = 1, },
 	{ .name = "adsl_afe", .bit = 2, },
@@ -57,7 +56,7 @@ const struct clk_bcm63xx_table_entry bcm6328_clocks[] = {
 	{ },
 };
 
-const struct clk_bcm63xx_table_entry bcm6358_clocks[] = {
+static const struct clk_bcm63xx_table_entry bcm6358_clocks[] = {
 	{ .name = "enet", .bit = 4, },
 	{ .name = "adslphy", .bit = 5, },
 	{ .name = "pcm", .bit = 8, },
@@ -72,7 +71,7 @@ const struct clk_bcm63xx_table_entry bcm6358_clocks[] = {
 	{ },
 };
 
-const struct clk_bcm63xx_table_entry bcm6362_clocks[] = {
+static const struct clk_bcm63xx_table_entry bcm6362_clocks[] = {
 	{ .name = "adsl_qproc", .bit = 1, },
 	{ .name = "adsl_afe", .bit = 2, },
 	{ .name = "adsl", .bit = 3, },
@@ -95,7 +94,7 @@ const struct clk_bcm63xx_table_entry bcm6362_clocks[] = {
 	{ },
 };
 
-const struct clk_bcm63xx_table_entry bcm6368_clocks[] = {
+static const struct clk_bcm63xx_table_entry bcm6368_clocks[] = {
 	{ .name = "vdsl_qproc", .bit = 2, },
 	{ .name = "vdsl_afe", .bit = 3, },
 	{ .name = "vdsl_bonding", .bit = 4, },
@@ -116,7 +115,7 @@ const struct clk_bcm63xx_table_entry bcm6368_clocks[] = {
 	{ },
 };
 
-const struct clk_bcm63xx_table_entry bcm63268_clocks[] = {
+static const struct clk_bcm63xx_table_entry bcm63268_clocks[] = {
 	{ .name = "disable_gless", .bit = 0, },
 	{ .name = "vdsl_qproc", .bit = 1, },
 	{ .name = "vdsl_afe", .bit = 2, },
@@ -225,22 +224,15 @@ static const struct of_device_id clk_bcm63xx_dt_ids[] = {
 	{ .compatible = "brcm,bcm6362-clocks", .data = &bcm6362_clocks, },
 	{ .compatible = "brcm,bcm6368-clocks", .data = &bcm6368_clocks, },
 	{ .compatible = "brcm,bcm63268-clocks", .data = &bcm63268_clocks, },
-	{ },
+	{ }
 };
 
-MODULE_DEVICE_TABLE(of, clk_bcm63xx_dt_ids);
-
 static struct platform_driver clk_bcm63xx = {
 	.probe = clk_bcm63xx_probe,
 	.remove = clk_bcm63xx_remove,
 	.driver = {
 		.name = "bcm63xx-clock",
-		.of_match_table = of_match_ptr(clk_bcm63xx_dt_ids),
+		.of_match_table = clk_bcm63xx_dt_ids,
 	},
 };
-
 builtin_platform_driver(clk_bcm63xx);
-
-MODULE_AUTHOR("Jonas Gorski <jonas.gorski@gmail.com>");
-MODULE_DESCRIPTION("BCM63XX (MIPS) gated clock controller driver");
-MODULE_LICENSE("GPL");

  parent reply	other threads:[~2019-06-27 20:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-02 12:26 [PATCH 0/3] MIPS: BMIPS: add support for gated clock controller Jonas Gorski
2019-05-02 12:26 ` [PATCH 1/3] devicetree: document the BCM63XX gated clock bindings Jonas Gorski
2019-05-03  1:44   ` Florian Fainelli
2019-05-03  9:47     ` Jonas Gorski
2019-05-03  9:47       ` Jonas Gorski
2019-05-03 14:36   ` Philippe Mathieu-Daudé
2019-05-05 18:57     ` Jonas Gorski
2019-05-05 18:57       ` Jonas Gorski
2019-05-05 23:26       ` Philippe Mathieu-Daudé
2019-05-05 23:26         ` Philippe Mathieu-Daudé
2019-05-14 20:33   ` Rob Herring
2019-06-27 20:36   ` Stephen Boyd
2019-05-02 12:26 ` [PATCH 2/3] clk: add BCM63XX gated clock controller driver Jonas Gorski
2019-05-03  1:46   ` Florian Fainelli
2019-05-03 14:13   ` Philippe Mathieu-Daudé
2019-06-27 20:43   ` Stephen Boyd [this message]
2019-05-02 12:26 ` [PATCH 3/3] MIPS: BMIPS: add clock controller nodes Jonas Gorski
2019-05-03  1:47   ` Florian Fainelli
2019-05-03 14:36   ` Philippe Mathieu-Daudé
2019-07-22 21:22   ` Paul Burton
2019-07-22 21:22     ` Paul Burton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190627204318.828302075E@mail.kernel.org \
    --to=sboyd@kernel.org \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=cernekee@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=f.fainelli@gmail.com \
    --cc=jhogan@kernel.org \
    --cc=jonas.gorski@gmail.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mturquette@baylibre.com \
    --cc=paul.burton@mips.com \
    --cc=ralf@linux-mips.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.