Skip to content

Commit

Permalink
irq_domain/c6x: Use library of xlate functions
Browse files Browse the repository at this point in the history
The c6x irq controllers don't need to define custom .xlate hooks

Signed-off-by: Grant Likely <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Mark Salter <[email protected]>
Cc: Thomas Gleixner <[email protected]>
  • Loading branch information
glikely committed Feb 16, 2012
1 parent 15a2598 commit c1e572e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
1 change: 1 addition & 0 deletions arch/c6x/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ static int core_domain_map(struct irq_domain *h, unsigned int virq,

static const struct irq_domain_ops core_domain_ops = {
.map = core_domain_map,
.xlate = irq_domain_xlate_onecell,
};

void __init init_IRQ(void)
Expand Down
14 changes: 1 addition & 13 deletions arch/c6x/platforms/megamod-pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,21 +136,9 @@ static int megamod_map(struct irq_domain *h, unsigned int virq,
return 0;
}

static int megamod_xlate(struct irq_domain *h, struct device_node *ct,
const u32 *intspec, unsigned int intsize,
irq_hw_number_t *out_hwirq, unsigned int *out_type)

{
/* megamod intspecs must have 1 cell */
BUG_ON(intsize != 1);
*out_hwirq = intspec[0];
*out_type = IRQ_TYPE_NONE;
return 0;
}

static const struct irq_domain_ops megamod_domain_ops = {
.map = megamod_map,
.xlate = megamod_xlate,
.xlate = irq_domain_xlate_onecell,
};

static void __init set_megamod_mux(struct megamod_pic *pic, int src, int output)
Expand Down

0 comments on commit c1e572e

Please sign in to comment.