Skip to content

Commit e947925

Browse files
kelvincheungrafaeljw
authored andcommitted
MIPS: loongson32: Drop obsolete cpufreq platform device
The obsolete cpufreq driver was removed, drop the platform device and data accordingly. Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Keguang Zhang <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 108fcad commit e947925

File tree

4 files changed

+0
-36
lines changed

4 files changed

+0
-36
lines changed

arch/mips/include/asm/mach-loongson32/cpufreq.h

Lines changed: 0 additions & 18 deletions
This file was deleted.

arch/mips/include/asm/mach-loongson32/platform.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <nand.h>
1313

1414
extern struct platform_device ls1x_uart_pdev;
15-
extern struct platform_device ls1x_cpufreq_pdev;
1615
extern struct platform_device ls1x_eth0_pdev;
1716
extern struct platform_device ls1x_eth1_pdev;
1817
extern struct platform_device ls1x_ehci_pdev;

arch/mips/loongson32/common/platform.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
#include <platform.h>
1717
#include <loongson1.h>
18-
#include <cpufreq.h>
1918
#include <dma.h>
2019
#include <nand.h>
2120

@@ -62,21 +61,6 @@ void __init ls1x_serial_set_uartclk(struct platform_device *pdev)
6261
p->uartclk = clk_get_rate(clk);
6362
}
6463

65-
/* CPUFreq */
66-
static struct plat_ls1x_cpufreq ls1x_cpufreq_pdata = {
67-
.clk_name = "cpu_clk",
68-
.osc_clk_name = "osc_clk",
69-
.max_freq = 266 * 1000,
70-
.min_freq = 33 * 1000,
71-
};
72-
73-
struct platform_device ls1x_cpufreq_pdev = {
74-
.name = "ls1x-cpufreq",
75-
.dev = {
76-
.platform_data = &ls1x_cpufreq_pdata,
77-
},
78-
};
79-
8064
/* Synopsys Ethernet GMAC */
8165
static struct stmmac_mdio_bus_data ls1x_mdio_bus_data = {
8266
.phy_mask = 0,

arch/mips/loongson32/ls1b/board.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ static const struct gpio_led_platform_data ls1x_led_pdata __initconst = {
3535

3636
static struct platform_device *ls1b_platform_devices[] __initdata = {
3737
&ls1x_uart_pdev,
38-
&ls1x_cpufreq_pdev,
3938
&ls1x_eth0_pdev,
4039
&ls1x_eth1_pdev,
4140
&ls1x_ehci_pdev,

0 commit comments

Comments
 (0)