Skip to content

Commit

Permalink
sparc: Restore irq_trans_init() call in prom_create_node().
Browse files Browse the repository at this point in the history
This broke sparc64 in various ways.

Add an empty dummy hook in sparc32's prom_32.c so that we
can potentially handle things on that side similarly, and
in particular avoid a prom_common.c ifdef :-)

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Dec 7, 2008
1 parent d34dd82 commit bf944c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions arch/sparc/kernel/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ extern struct device_node *allnodes; /* temporary while merging */
extern rwlock_t devtree_lock; /* temporary while merging */

extern void * prom_early_alloc(unsigned long size);

#ifdef CONFIG_SPARC64
extern void irq_trans_init(struct device_node *dp);
#endif

extern unsigned int prom_unique_id;

Expand Down
4 changes: 4 additions & 0 deletions arch/sparc/kernel/prom_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,7 @@ void __init of_console_init(void)
void __init of_fill_in_cpu_data(void)
{
}

void __init irq_trans_init(struct device_node *dp)
{
}
4 changes: 2 additions & 2 deletions arch/sparc/kernel/prom_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ static struct device_node * __init prom_create_node(phandle node,
dp->type = get_one_property(node, "device_type");
dp->node = node;

/* Build interrupts later... */

dp->properties = build_prop_list(node);

irq_trans_init(dp);

return dp;
}

Expand Down

0 comments on commit bf944c3

Please sign in to comment.