irq_domain/powerpc: Use common irq_domain structure instead of irq_host
This patch drops the powerpc-specific irq_host structures and uses the common irq_domain strucutres defined in linux/irqdomain.h. It also fixes all the users to use the new structure names. Renaming irq_host to irq_domain has been discussed for a long time, and this patch is a step in the process of generalizing the powerpc virq code to be usable by all architecture. An astute reader will notice that this patch actually removes the irq_host structure instead of renaming it. This is because the irq_domain structure already exists in include/linux/irqdomain.h and has the needed data members. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Milton Miller <miltonm@bga.com> Tested-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
@@ -54,7 +54,7 @@ cpm8xx_t __iomem *cpmp; /* Pointer to comm processor space */
|
||||
immap_t __iomem *mpc8xx_immr;
|
||||
static cpic8xx_t __iomem *cpic_reg;
|
||||
|
||||
static struct irq_host *cpm_pic_host;
|
||||
static struct irq_domain *cpm_pic_host;
|
||||
|
||||
static void cpm_mask_irq(struct irq_data *d)
|
||||
{
|
||||
@@ -98,7 +98,7 @@ int cpm_get_irq(void)
|
||||
return irq_linear_revmap(cpm_pic_host, cpm_vec);
|
||||
}
|
||||
|
||||
static int cpm_pic_host_map(struct irq_host *h, unsigned int virq,
|
||||
static int cpm_pic_host_map(struct irq_domain *h, unsigned int virq,
|
||||
irq_hw_number_t hw)
|
||||
{
|
||||
pr_debug("cpm_pic_host_map(%d, 0x%lx)\n", virq, hw);
|
||||
@@ -123,7 +123,7 @@ static struct irqaction cpm_error_irqaction = {
|
||||
.name = "error",
|
||||
};
|
||||
|
||||
static struct irq_host_ops cpm_pic_host_ops = {
|
||||
static struct irq_domain_ops cpm_pic_host_ops = {
|
||||
.map = cpm_pic_host_map,
|
||||
};
|
||||
|
||||
@@ -164,7 +164,7 @@ unsigned int cpm_pic_init(void)
|
||||
|
||||
out_be32(&cpic_reg->cpic_cimr, 0);
|
||||
|
||||
cpm_pic_host = irq_alloc_host(np, IRQ_HOST_MAP_LINEAR,
|
||||
cpm_pic_host = irq_alloc_host(np, IRQ_DOMAIN_MAP_LINEAR,
|
||||
64, &cpm_pic_host_ops, 64);
|
||||
if (cpm_pic_host == NULL) {
|
||||
printk(KERN_ERR "CPM2 PIC: failed to allocate irq host!\n");
|
||||
|
Reference in New Issue
Block a user