Skip to contentSkip to conversation

drivers: clk: sifive: fu740-prci: replace 'pciaux' with 'pcieaux'

PATCH In review Green Wan 2 participants 2 messages Jun 28, 2021

Subsystems (2)
lore
Share & tools
lore

Green Wan

author
#0 lore raw

PATCH 1/1 drivers: clk: sifive: fu740-prci: replace 'pciaux' with 'pcieaux'

Replace 'pciaux' with 'pcieaux', including name string and function prefix. The old name string, 'pciaux', might cause an error if PCIe driver is changed to use clk_get_by_name() with 'pcieaux' to get clock.

---
 drivers/clk/sifive/fu740-prci.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/clk/sifive/fu740-prci.c +3 -3
index 9a642c1c99..b025050e22 100644
@@ -20,7 +20,7 @@
 #include "sifive-prci.h"
 #include <asm/io.h>
 
-int sifive_prci_fu740_pciauxclk_enable(struct __prci_clock *pc, bool enable)
+int sifive_prci_fu740_pcieauxclk_enable(struct __prci_clock *pc, bool enable)
 {
 	struct __prci_wrpll_data *pwd = pc->pwd;
 	struct __prci_data *pd = pc->pd;
@@ -98,7 +98,7 @@ static const struct __prci_clock_ops sifive_fu740_prci_hfpclkplldiv_clk_ops = {
 };
 
 static const struct __prci_clock_ops sifive_fu740_prci_pcieaux_clk_ops = {
-	.enable_clk = sifive_prci_fu740_pciauxclk_enable,
+	.enable_clk = sifive_prci_fu740_pcieauxclk_enable,
 };
 
 /* List of clock controls provided by the PRCI */
@@ -150,7 +150,7 @@ struct __prci_clock __prci_init_clocks_fu740[] = {
 		.ops = &sifive_fu740_prci_hfpclkplldiv_clk_ops,
 	},
 	[PRCI_CLK_PCIEAUX] {
-		.name = "pciaux",
+		.name = "pcieaux",
 		.parent_name = "",
 		.ops = &sifive_fu740_prci_pcieaux_clk_ops,
 		.pwd = &__prci_pcieaux_data,
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Green Wan

Replace 'pciaux' with 'pcieaux', including name string and function prefix. The old name string, 'pciaux', might cause an error if PCIe driver is changed to use clk_get_by_name() with 'pcieaux' to get clock.

---
 drivers/clk/sifive/fu740-prci.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)