[PATCH] 64bit resource: fix up printks for resources in misc drivers
This is needed if we wish to change the size of the resource structures. Based on an original patch from Vivek Goyal <vgoyal@in.ibm.com> Cc: Vivek Goyal <vgoyal@in.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -180,8 +180,9 @@ static DEVICE_ATTR(name, S_IRUGO, show_##name, NULL)
|
||||
amba_attr(id, "%08x\n", dev->periphid);
|
||||
amba_attr(irq0, "%u\n", dev->irq[0]);
|
||||
amba_attr(irq1, "%u\n", dev->irq[1]);
|
||||
amba_attr(resource, "\t%08lx\t%08lx\t%08lx\n",
|
||||
dev->res.start, dev->res.end, dev->res.flags);
|
||||
amba_attr(resource, "\t%016llx\t%016llx\t%016lx\n",
|
||||
(unsigned long long)dev->res.start, (unsigned long long)dev->res.end,
|
||||
dev->res.flags);
|
||||
|
||||
/**
|
||||
* amba_device_register - register an AMBA device
|
||||
|
Reference in New Issue
Block a user