aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64/of_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-sparc64/of_device.h')
-rw-r--r--include/asm-sparc64/of_device.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-sparc64/of_device.h b/include/asm-sparc64/of_device.h
index 37c5856fae12..a62c7b997d66 100644
--- a/include/asm-sparc64/of_device.h
+++ b/include/asm-sparc64/of_device.h
@@ -22,7 +22,8 @@ struct of_device
22 struct device_node *node; 22 struct device_node *node;
23 struct device dev; 23 struct device dev;
24 struct resource resource[PROMREG_MAX]; 24 struct resource resource[PROMREG_MAX];
25 unsigned int irq; 25 unsigned int irqs[PROMINTR_MAX];
26 int num_irqs;
26 27
27 void *sysdata; 28 void *sysdata;
28 29
@@ -35,6 +36,8 @@ struct of_device
35extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name); 36extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name);
36extern void of_iounmap(void __iomem *base, unsigned long size); 37extern void of_iounmap(void __iomem *base, unsigned long size);
37 38
39extern struct of_device *of_find_device_by_node(struct device_node *);
40
38extern const struct of_device_id *of_match_device( 41extern const struct of_device_id *of_match_device(
39 const struct of_device_id *matches, const struct of_device *dev); 42 const struct of_device_id *matches, const struct of_device *dev);
40 43