Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112992
b: refs/heads/master
c: 51e0f00
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Aug 25, 2008
1 parent 542a3f9 commit fdb43c8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 783c98b911fce8d47aa2906468ca39d44d46d7ce
refs/heads/master: 51e0f004a9ab9104acbe323c0b20e0279bf9be85
6 changes: 4 additions & 2 deletions trunk/arch/sparc/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ static inline void of_node_put(struct device_node *node)
* register them in the of_device objects, whereas powerpc computes them
* on request.
*/
extern int irq_of_parse_and_map(struct device_node *node, int index);
#define irq_dispose_mapping(irq) do { } while (0)
extern unsigned int irq_of_parse_and_map(struct device_node *node, int index);
static inline void irq_dispose_mapping(unsigned int virq)
{
}

/*
* NB: This is here while we transition from using asm/prom.h
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/sparc/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ struct of_device *of_find_device_by_node(struct device_node *dp)
}
EXPORT_SYMBOL(of_find_device_by_node);

int irq_of_parse_and_map(struct device_node *node, int index)
unsigned int irq_of_parse_and_map(struct device_node *node, int index)
{
struct of_device *op = of_find_device_by_node(node);

if (!op || index >= op->num_irqs)
return 0xffffffff;
return 0;

return op->irqs[index];
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/sparc64/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ struct of_device *of_find_device_by_node(struct device_node *dp)
}
EXPORT_SYMBOL(of_find_device_by_node);

int irq_of_parse_and_map(struct device_node *node, int index)
unsigned int irq_of_parse_and_map(struct device_node *node, int index)
{
struct of_device *op = of_find_device_by_node(node);

if (!op || index >= op->num_irqs)
return 0xffffffff;
return 0;

return op->irqs[index];
}
Expand Down

0 comments on commit fdb43c8

Please sign in to comment.