summaryrefslogtreecommitdiff
path: root/include/asm-powerpc/prom.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2006-07-04 16:46:44 +1000
committerPaul Mackerras <paulus@samba.org>2006-07-07 20:19:16 +1000
commitb5a1a9abe1a54ba40a9612001920f98bbdd0c56f (patch)
treee0ed5a874d08e753b9643120cc68900c31c95cbe /include/asm-powerpc/prom.h
parent980ffd3258dbcdb011e929de5d658ec81febba8d (diff)
[POWERPC] Use const qualifiers for prom parsing utilites
The of_bus callbacks map and get_flags can be constified, as they don't alter the range or addr arguments. of_dump_addr and of_read_addr can also be constified. Built for 32- and 64-bit powerpc Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/prom.h')
-rw-r--r--include/asm-powerpc/prom.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-powerpc/prom.h b/include/asm-powerpc/prom.h
index b095a285c84b..56f6ea0c76de 100644
--- a/include/asm-powerpc/prom.h
+++ b/include/asm-powerpc/prom.h
@@ -198,7 +198,7 @@ extern int release_OF_resource(struct device_node* node, int index);
/* Helper to read a big number */
-static inline u64 of_read_number(u32 *cell, int size)
+static inline u64 of_read_number(const u32 *cell, int size)
{
u64 r = 0;
while (size--)