diff options
Diffstat (limited to 'arch/mips/ralink')
-rw-r--r-- | arch/mips/ralink/clk.c | 2 | ||||
-rw-r--r-- | arch/mips/ralink/mt7620.c | 2 | ||||
-rw-r--r-- | arch/mips/ralink/of.c | 3 | ||||
-rw-r--r-- | arch/mips/ralink/rt305x.c | 2 | ||||
-rw-r--r-- | arch/mips/ralink/timer.c | 2 |
5 files changed, 6 insertions, 5 deletions
diff --git a/arch/mips/ralink/clk.c b/arch/mips/ralink/clk.c index bba0cdfd83bc..5d0983d47161 100644 --- a/arch/mips/ralink/clk.c +++ b/arch/mips/ralink/clk.c | |||
@@ -26,7 +26,7 @@ void ralink_clk_add(const char *dev, unsigned long rate) | |||
26 | struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); | 26 | struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); |
27 | 27 | ||
28 | if (!clk) | 28 | if (!clk) |
29 | panic("failed to add clock\n"); | 29 | panic("failed to add clock"); |
30 | 30 | ||
31 | clk->cl.dev_id = dev; | 31 | clk->cl.dev_id = dev; |
32 | clk->cl.clk = clk; | 32 | clk->cl.clk = clk; |
diff --git a/arch/mips/ralink/mt7620.c b/arch/mips/ralink/mt7620.c index d217509e5300..a3ad56c2372d 100644 --- a/arch/mips/ralink/mt7620.c +++ b/arch/mips/ralink/mt7620.c | |||
@@ -350,7 +350,7 @@ void prom_soc_init(struct ralink_soc_info *soc_info) | |||
350 | name = "MT7620A"; | 350 | name = "MT7620A"; |
351 | soc_info->compatible = "ralink,mt7620a-soc"; | 351 | soc_info->compatible = "ralink,mt7620a-soc"; |
352 | } else { | 352 | } else { |
353 | panic("mt7620: unknown SoC, n0:%08x n1:%08x\n", n0, n1); | 353 | panic("mt7620: unknown SoC, n0:%08x n1:%08x", n0, n1); |
354 | } | 354 | } |
355 | 355 | ||
356 | rev = __raw_readl(sysc + SYSC_REG_CHIP_REV); | 356 | rev = __raw_readl(sysc + SYSC_REG_CHIP_REV); |
diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c index ce38d11f9da5..eccc5526155e 100644 --- a/arch/mips/ralink/of.c +++ b/arch/mips/ralink/of.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <asm/reboot.h> | 21 | #include <asm/reboot.h> |
22 | #include <asm/bootinfo.h> | 22 | #include <asm/bootinfo.h> |
23 | #include <asm/addrspace.h> | 23 | #include <asm/addrspace.h> |
24 | #include <asm/prom.h> | ||
24 | 25 | ||
25 | #include "common.h" | 26 | #include "common.h" |
26 | 27 | ||
@@ -108,7 +109,7 @@ static int __init plat_of_setup(void) | |||
108 | strncpy(of_ids[1].compatible, "palmbus", len); | 109 | strncpy(of_ids[1].compatible, "palmbus", len); |
109 | 110 | ||
110 | if (of_platform_populate(NULL, of_ids, NULL, NULL)) | 111 | if (of_platform_populate(NULL, of_ids, NULL, NULL)) |
111 | panic("failed to populate DT\n"); | 112 | panic("failed to populate DT"); |
112 | 113 | ||
113 | /* make sure ithat the reset controller is setup early */ | 114 | /* make sure ithat the reset controller is setup early */ |
114 | ralink_rst_init(); | 115 | ralink_rst_init(); |
diff --git a/arch/mips/ralink/rt305x.c b/arch/mips/ralink/rt305x.c index ca7ee3a33790..bb82a82da9e7 100644 --- a/arch/mips/ralink/rt305x.c +++ b/arch/mips/ralink/rt305x.c | |||
@@ -276,7 +276,7 @@ void prom_soc_init(struct ralink_soc_info *soc_info) | |||
276 | name = "RT5350"; | 276 | name = "RT5350"; |
277 | soc_info->compatible = "ralink,rt5350-soc"; | 277 | soc_info->compatible = "ralink,rt5350-soc"; |
278 | } else { | 278 | } else { |
279 | panic("rt305x: unknown SoC, n0:%08x n1:%08x\n", n0, n1); | 279 | panic("rt305x: unknown SoC, n0:%08x n1:%08x", n0, n1); |
280 | } | 280 | } |
281 | 281 | ||
282 | id = __raw_readl(sysc + SYSC_REG_CHIP_ID); | 282 | id = __raw_readl(sysc + SYSC_REG_CHIP_ID); |
diff --git a/arch/mips/ralink/timer.c b/arch/mips/ralink/timer.c index e49241a2c39a..202785709441 100644 --- a/arch/mips/ralink/timer.c +++ b/arch/mips/ralink/timer.c | |||
@@ -126,7 +126,7 @@ static int rt_timer_probe(struct platform_device *pdev) | |||
126 | return -ENOENT; | 126 | return -ENOENT; |
127 | } | 127 | } |
128 | 128 | ||
129 | rt->membase = devm_request_and_ioremap(&pdev->dev, res); | 129 | rt->membase = devm_ioremap_resource(&pdev->dev, res); |
130 | if (IS_ERR(rt->membase)) | 130 | if (IS_ERR(rt->membase)) |
131 | return PTR_ERR(rt->membase); | 131 | return PTR_ERR(rt->membase); |
132 | 132 | ||