diff options
| author | Benoit Cousson <b-cousson@ti.com> | 2012-02-27 10:32:39 +0100 | 
|---|---|---|
| committer | Benoit Cousson <b-cousson@ti.com> | 2012-02-27 10:32:39 +0100 | 
| commit | 1f52299ec000e2161635b263d81ab92ea7f1f0a7 (patch) | |
| tree | 66b1414ce81dacf5758e824640f869d16d024c4a /arch/powerpc/sysdev/fsl_msi.c | |
| parent | ffd76d8be36da09f8456c55569c008f5aa93095e (diff) | |
| parent | 280ad7fda5f95211857fda38960f2b6fdf6edd3e (diff) | |
| download | olio-linux-3.10-1f52299ec000e2161635b263d81ab92ea7f1f0a7.tar.xz olio-linux-3.10-1f52299ec000e2161635b263d81ab92ea7f1f0a7.zip  | |
Merge branch 'irqdomain/next' of git://git.secretlab.ca/git/linux-2.6 into for_3.4/dt_irq_domain2
Diffstat (limited to 'arch/powerpc/sysdev/fsl_msi.c')
| -rw-r--r-- | arch/powerpc/sysdev/fsl_msi.c | 10 | 
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c index ecb5c1946d2..0c01debe963 100644 --- a/arch/powerpc/sysdev/fsl_msi.c +++ b/arch/powerpc/sysdev/fsl_msi.c @@ -60,7 +60,7 @@ static struct irq_chip fsl_msi_chip = {  	.name		= "FSL-MSI",  }; -static int fsl_msi_host_map(struct irq_host *h, unsigned int virq, +static int fsl_msi_host_map(struct irq_domain *h, unsigned int virq,  				irq_hw_number_t hw)  {  	struct fsl_msi *msi_data = h->host_data; @@ -74,7 +74,7 @@ static int fsl_msi_host_map(struct irq_host *h, unsigned int virq,  	return 0;  } -static struct irq_host_ops fsl_msi_host_ops = { +static const struct irq_domain_ops fsl_msi_host_ops = {  	.map = fsl_msi_host_map,  }; @@ -387,8 +387,8 @@ static int __devinit fsl_of_msi_probe(struct platform_device *dev)  	}  	platform_set_drvdata(dev, msi); -	msi->irqhost = irq_alloc_host(dev->dev.of_node, IRQ_HOST_MAP_LINEAR, -				      NR_MSI_IRQS, &fsl_msi_host_ops, 0); +	msi->irqhost = irq_domain_add_linear(dev->dev.of_node, +				      NR_MSI_IRQS, &fsl_msi_host_ops, msi);  	if (msi->irqhost == NULL) {  		dev_err(&dev->dev, "No memory for MSI irqhost\n"); @@ -420,8 +420,6 @@ static int __devinit fsl_of_msi_probe(struct platform_device *dev)  	msi->feature = features->fsl_pic_ip; -	msi->irqhost->host_data = msi; -  	/*  	 * Remember the phandle, so that we can match with any PCI nodes  	 * that have an "fsl,msi" property.  |