summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/dcr.c
diff options
context:
space:
mode:
authorGrant Erickson2008-12-19 09:17:54 +0100
committerPaul Mackerras2008-12-21 04:21:16 +0100
commite14d77490d3e1da833cff4fee52674c52684ce77 (patch)
tree9f461e7704908cd8eef3ee54376391ef57cf3b51 /arch/powerpc/sysdev/dcr.c
parentpowerpc/44x: 44x TLB doesn't need "Guarded" set for all pages (diff)
downloadkernel-qcow2-linux-e14d77490d3e1da833cff4fee52674c52684ce77.tar.gz
kernel-qcow2-linux-e14d77490d3e1da833cff4fee52674c52684ce77.tar.xz
kernel-qcow2-linux-e14d77490d3e1da833cff4fee52674c52684ce77.zip
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/sysdev/dcr.c')
-rw-r--r--arch/powerpc/sysdev/dcr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/sysdev/dcr.c b/arch/powerpc/sysdev/dcr.c
index a8ba9983dd5a..bb44aa9fd470 100644
--- a/arch/powerpc/sysdev/dcr.c
+++ b/arch/powerpc/sysdev/dcr.c
@@ -124,7 +124,8 @@ EXPORT_SYMBOL_GPL(dcr_write_generic);
#endif /* defined(CONFIG_PPC_DCR_NATIVE) && defined(CONFIG_PPC_DCR_MMIO) */
-unsigned int dcr_resource_start(struct device_node *np, unsigned int index)
+unsigned int dcr_resource_start(const struct device_node *np,
+ unsigned int index)
{
unsigned int ds;
const u32 *dr = of_get_property(np, "dcr-reg", &ds);
@@ -136,7 +137,7 @@ unsigned int dcr_resource_start(struct device_node *np, unsigned int index)
}
EXPORT_SYMBOL_GPL(dcr_resource_start);
-unsigned int dcr_resource_len(struct device_node *np, unsigned int index)
+unsigned int dcr_resource_len(const struct device_node *np, unsigned int index)
{
unsigned int ds;
const u32 *dr = of_get_property(np, "dcr-reg", &ds);