MIPS: loongson32: Drop obsolete cpufreq platform device
authorKeguang Zhang <keguang.zhang@gmail.com>
Fri, 10 Feb 2023 11:09:34 +0000 (19:09 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Feb 2023 16:11:00 +0000 (17:11 +0100)
The obsolete cpufreq driver was removed, drop the platform device
and data accordingly.

Link: https://lore.kernel.org/all/20230112135342.3927338-1-keguang.zhang@gmail.com
Signed-off-by: Keguang Zhang <keguang.zhang@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/mips/include/asm/mach-loongson32/cpufreq.h [deleted file]
arch/mips/include/asm/mach-loongson32/platform.h
arch/mips/loongson32/common/platform.c
arch/mips/loongson32/ls1b/board.c

diff --git a/arch/mips/include/asm/mach-loongson32/cpufreq.h b/arch/mips/include/asm/mach-loongson32/cpufreq.h
deleted file mode 100644 (file)
index e422a32..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * Copyright (c) 2014 Zhang, Keguang <keguang.zhang@gmail.com>
- *
- * Loongson 1 CPUFreq platform support.
- */
-
-#ifndef __ASM_MACH_LOONGSON32_CPUFREQ_H
-#define __ASM_MACH_LOONGSON32_CPUFREQ_H
-
-struct plat_ls1x_cpufreq {
-       const char      *clk_name;      /* CPU clk */
-       const char      *osc_clk_name;  /* OSC clk */
-       unsigned int    max_freq;       /* in kHz */
-       unsigned int    min_freq;       /* in kHz */
-};
-
-#endif /* __ASM_MACH_LOONGSON32_CPUFREQ_H */
index eb83e27418877227dbc710520d6316548566731e..86e1a6aab4e5f61ffc8d0da48c55f384f2e16241 100644 (file)
@@ -12,7 +12,6 @@
 #include <nand.h>
 
 extern struct platform_device ls1x_uart_pdev;
-extern struct platform_device ls1x_cpufreq_pdev;
 extern struct platform_device ls1x_eth0_pdev;
 extern struct platform_device ls1x_eth1_pdev;
 extern struct platform_device ls1x_ehci_pdev;
index 311dc1580bbde98e59f33f508afba7695714923d..64d7979394e63b0f22003ba1352a54fb0e21a222 100644 (file)
@@ -15,7 +15,6 @@
 
 #include <platform.h>
 #include <loongson1.h>
-#include <cpufreq.h>
 #include <dma.h>
 #include <nand.h>
 
@@ -62,21 +61,6 @@ void __init ls1x_serial_set_uartclk(struct platform_device *pdev)
                p->uartclk = clk_get_rate(clk);
 }
 
-/* CPUFreq */
-static struct plat_ls1x_cpufreq ls1x_cpufreq_pdata = {
-       .clk_name       = "cpu_clk",
-       .osc_clk_name   = "osc_clk",
-       .max_freq       = 266 * 1000,
-       .min_freq       = 33 * 1000,
-};
-
-struct platform_device ls1x_cpufreq_pdev = {
-       .name           = "ls1x-cpufreq",
-       .dev            = {
-               .platform_data = &ls1x_cpufreq_pdata,
-       },
-};
-
 /* Synopsys Ethernet GMAC */
 static struct stmmac_mdio_bus_data ls1x_mdio_bus_data = {
        .phy_mask       = 0,
index 727e06718dab9ce93bb5e1ccd31bdcac0cfef081..fed8d432ef2068ade08e9696ed2879d1f87d3bd8 100644 (file)
@@ -35,7 +35,6 @@ static const struct gpio_led_platform_data ls1x_led_pdata __initconst = {
 
 static struct platform_device *ls1b_platform_devices[] __initdata = {
        &ls1x_uart_pdev,
-       &ls1x_cpufreq_pdev,
        &ls1x_eth0_pdev,
        &ls1x_eth1_pdev,
        &ls1x_ehci_pdev,