summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/prom.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-03-29 09:47:23 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 10:54:22 +0200
commit8271f04242af8ddf8390f289cd6ef78fb3e3c6d9 (patch)
tree5e4cd7a1889931f6cea5f994c6cb06c9bf120a4c /arch/sparc/kernel/prom.c
parent[SPARC64]: Small cleanups time.c (diff)
downloadlinux-8271f04242af8ddf8390f289cd6ef78fb3e3c6d9.tar.xz
linux-8271f04242af8ddf8390f289cd6ef78fb3e3c6d9.zip
[SPARC]: constify of_get_property return: arch/sparc
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/prom.c')
-rw-r--r--arch/sparc/kernel/prom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/kernel/prom.c b/arch/sparc/kernel/prom.c
index 2cc302b6bec0..8359d00a2489 100644
--- a/arch/sparc/kernel/prom.c
+++ b/arch/sparc/kernel/prom.c
@@ -37,7 +37,7 @@ int of_device_is_compatible(struct device_node *device, const char *compat)
const char* cp;
int cplen, l;
- cp = (char *) of_get_property(device, "compatible", &cplen);
+ cp = of_get_property(device, "compatible", &cplen);
if (cp == NULL)
return 0;
while (cplen > 0) {
@@ -192,7 +192,7 @@ EXPORT_SYMBOL(of_getintprop_default);
int of_n_addr_cells(struct device_node *np)
{
- int* ip;
+ const int* ip;
do {
if (np->parent)
np = np->parent;
@@ -207,7 +207,7 @@ EXPORT_SYMBOL(of_n_addr_cells);
int of_n_size_cells(struct device_node *np)
{
- int* ip;
+ const int* ip;
do {
if (np->parent)
np = np->parent;