diff options
author | Grant Erickson <gerickson@nuovations.com> | 2008-12-19 08:17:54 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-12-21 03:21:16 (GMT) |
commit | e14d77490d3e1da833cff4fee52674c52684ce77 (patch) | |
tree | 9f461e7704908cd8eef3ee54376391ef57cf3b51 /arch/powerpc/include/asm/dcr.h | |
parent | 9dce3ce5c55c848f00429005a46fd6246cfabfbe (diff) | |
download | linux-e14d77490d3e1da833cff4fee52674c52684ce77.tar.xz |
powerpc: Const-qualify Device Node Argument to DCR Resource Extent API
Add const qualifier to device_node argument for
dcr_resource_{start,len} as of_get_property also const-qualifies this
argument.
Signed-off-by: Grant Erickson <gerickson@nuovations.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/include/asm/dcr.h')
-rw-r--r-- | arch/powerpc/include/asm/dcr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/dcr.h b/arch/powerpc/include/asm/dcr.h index d13fb68..9d6851c 100644 --- a/arch/powerpc/include/asm/dcr.h +++ b/arch/powerpc/include/asm/dcr.h @@ -68,9 +68,9 @@ typedef dcr_host_mmio_t dcr_host_t; * additional helpers to read the DCR * base from the device-tree */ struct device_node; -extern unsigned int dcr_resource_start(struct device_node *np, +extern unsigned int dcr_resource_start(const struct device_node *np, unsigned int index); -extern unsigned int dcr_resource_len(struct device_node *np, +extern unsigned int dcr_resource_len(const struct device_node *np, unsigned int index); #endif /* CONFIG_PPC_DCR */ #endif /* __ASSEMBLY__ */ |