Skip to content

Commit

Permalink
MIPS: loongson32: Drop obsolete cpufreq platform device
Browse files Browse the repository at this point in the history
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>
Keguang Zhang authored and Rafael J. Wysocki committed Feb 13, 2023
1 parent 108fcad commit e947925
Showing 4 changed files with 0 additions and 36 deletions.
18 changes: 0 additions & 18 deletions arch/mips/include/asm/mach-loongson32/cpufreq.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/mips/include/asm/mach-loongson32/platform.h
Original file line number Diff line number Diff line change
@@ -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;
16 changes: 0 additions & 16 deletions arch/mips/loongson32/common/platform.c
Original file line number Diff line number Diff line change
@@ -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,
1 change: 0 additions & 1 deletion arch/mips/loongson32/ls1b/board.c
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit e947925

Please sign in to comment.