projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
of/irq: init struct resource to 0 in of_irq_to_resource()
[linux-2.6-block.git]
/
drivers
/
of
/
irq.c
diff --git
a/drivers/of/irq.c
b/drivers/of/irq.c
index 5c645c7227b8983c9c36cf4fa25c5bccc7ba784f..1264923ade0f2c7973528080d3fa75167b6be0b4 100644
(file)
--- a/
drivers/of/irq.c
+++ b/
drivers/of/irq.c
@@
-345,6
+345,7
@@
int of_irq_to_resource(struct device_node *dev, int index, struct resource *r)
if (r && irq) {
const char *name = NULL;
+ memset(r, 0, sizeof(*r));
/*
* Get optional "interrupts-names" property to add a name
* to the resource.