rtl83xx: drop clk_dev support
authorJohn Crispin <john@phrozen.org>
Tue, 24 Nov 2020 15:19:44 +0000 (16:19 +0100)
committerJohn Crispin <john@phrozen.org>
Tue, 24 Nov 2020 15:19:44 +0000 (16:19 +0100)
Signed-off-by: John Crispin <john@phrozen.org>
target/linux/rtl838x/files-5.4/arch/mips/rtl838x/setup.c
target/linux/rtl838x/patches-5.4/300-mips-add-rtl838x-platform.patch

index 567a25392a467c5b042b3a6219ac121e2487b353..6f00479ec22941de89ad05d8b0f59fdcc051f193 100644 (file)
@@ -118,43 +118,6 @@ void __init plat_mem_setup(void)
        rtl838x_setup();
 }
 
-
-/*
- * Linux clock API
- */
-int clk_enable(struct clk *clk)
-{
-       return 0;
-}
-EXPORT_SYMBOL_GPL(clk_enable);
-
-void clk_disable(struct clk *clk)
-{
-
-}
-EXPORT_SYMBOL_GPL(clk_disable);
-
-unsigned long clk_get_rate(struct clk *clk)
-{
-       if (!clk)
-               return 0;
-
-       return clk->rate;
-}
-EXPORT_SYMBOL_GPL(clk_get_rate);
-
-int clk_set_rate(struct clk *clk, unsigned long rate)
-{
-       return -1;
-}
-EXPORT_SYMBOL_GPL(clk_set_rate);
-
-long clk_round_rate(struct clk *clk, unsigned long rate)
-{
-       return -1;
-}
-EXPORT_SYMBOL_GPL(clk_round_rate);
-
 void __init plat_time_init(void)
 {
        u32 freq = 500000000;
index ec114a04c9a02646743e450c8c4449743387082c..a106d815766e0080321d2e4cc52b621de7d6d1bb 100644 (file)
@@ -1,5 +1,7 @@
---- a/arch/mips/Kbuild.platforms
-+++ b/arch/mips/Kbuild.platforms
+Index: linux-5.4.77/arch/mips/Kbuild.platforms
+===================================================================
+--- linux-5.4.77.orig/arch/mips/Kbuild.platforms
++++ linux-5.4.77/arch/mips/Kbuild.platforms
 @@ -27,6 +27,7 @@ platforms += pistachio
  platforms += pmcs-msp71xx
  platforms += pnx833x
@@ -8,9 +10,11 @@
  platforms += rb532
  platforms += sgi-ip22
  platforms += sgi-ip27
---- a/arch/mips/Kconfig
-+++ b/arch/mips/Kconfig
-@@ -630,6 +630,29 @@ config RALINK
+Index: linux-5.4.77/arch/mips/Kconfig
+===================================================================
+--- linux-5.4.77.orig/arch/mips/Kconfig
++++ linux-5.4.77/arch/mips/Kconfig
+@@ -630,6 +630,28 @@ config RALINK
        select ARCH_HAS_RESET_CONTROLLER
        select RESET_CONTROLLER
  
@@ -30,7 +34,6 @@
 +      select SYS_HAS_EARLY_PRINTK
 +      select SWAP_IO_SPACE
 +      select BOOT_RAW
-+      select CLKDEV_LOOKUP
 +      select PINCTRL
 +      select ARCH_HAS_RESET_CONTROLLER
 +      select RESET_CONTROLLER