diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-11-21 18:22:09 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 16:47:31 -0500 |
commit | 15d45cce3a0e0716fa49c768f887c6406dfb91f7 (patch) | |
tree | e2235d1a04b61a6c2100f781474e37bda78f5770 /arch/mips/kernel/setup.c | |
parent | 34adb28d500e644cc260da4ceb66ba6dc0beaf93 (diff) |
MIPS: Replace use of phys_t with phys_addr_t.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/setup.c')
-rw-r--r-- | arch/mips/kernel/setup.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index eacfd7dbe8cc..a51c023d0707 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
@@ -82,7 +82,7 @@ static struct resource data_resource = { .name = "Kernel data", }; | |||
82 | 82 | ||
83 | static void *detect_magic __initdata = detect_memory_region; | 83 | static void *detect_magic __initdata = detect_memory_region; |
84 | 84 | ||
85 | void __init add_memory_region(phys_t start, phys_t size, long type) | 85 | void __init add_memory_region(phys_addr_t start, phys_addr_t size, long type) |
86 | { | 86 | { |
87 | int x = boot_mem_map.nr_map; | 87 | int x = boot_mem_map.nr_map; |
88 | int i; | 88 | int i; |
@@ -127,10 +127,10 @@ void __init add_memory_region(phys_t start, phys_t size, long type) | |||
127 | boot_mem_map.nr_map++; | 127 | boot_mem_map.nr_map++; |
128 | } | 128 | } |
129 | 129 | ||
130 | void __init detect_memory_region(phys_t start, phys_t sz_min, phys_t sz_max) | 130 | void __init detect_memory_region(phys_addr_t start, phys_addr_t sz_min, phys_addr_t sz_max) |
131 | { | 131 | { |
132 | void *dm = &detect_magic; | 132 | void *dm = &detect_magic; |
133 | phys_t size; | 133 | phys_addr_t size; |
134 | 134 | ||
135 | for (size = sz_min; size < sz_max; size <<= 1) { | 135 | for (size = sz_min; size < sz_max; size <<= 1) { |
136 | if (!memcmp(dm, dm + size, sizeof(detect_magic))) | 136 | if (!memcmp(dm, dm + size, sizeof(detect_magic))) |
@@ -545,9 +545,9 @@ static int __init early_parse_elfcorehdr(char *p) | |||
545 | early_param("elfcorehdr", early_parse_elfcorehdr); | 545 | early_param("elfcorehdr", early_parse_elfcorehdr); |
546 | #endif | 546 | #endif |
547 | 547 | ||
548 | static void __init arch_mem_addpart(phys_t mem, phys_t end, int type) | 548 | static void __init arch_mem_addpart(phys_addr_t mem, phys_addr_t end, int type) |
549 | { | 549 | { |
550 | phys_t size; | 550 | phys_addr_t size; |
551 | int i; | 551 | int i; |
552 | 552 | ||
553 | size = end - mem; | 553 | size = end - mem; |