diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2015-10-13 07:51:44 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-10-13 13:01:25 -0400 |
commit | be5436c83ac8921f33fe07323fab03c6644ce52e (patch) | |
tree | abf186e601580aa8a5746a7cd9dec26612a0dfc1 /drivers/base | |
parent | 2a5e9a072da6469a37d1f0b1577416f51223c280 (diff) |
irqdomain/msi: Use fwnode instead of of_node
As we continue to push of_node towards the outskirts of irq domains,
let's start tackling the case of msi_create_irq_domain and its little
friends.
This has limited impact in both PCI/MSI, platform MSI, and a few
drivers.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Tested-by: Hanjun Guo <hanjun.guo@linaro.org>
Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: <linux-arm-kernel@lists.infradead.org>
Cc: Tomasz Nowicki <tomasz.nowicki@linaro.org>
Cc: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Cc: Graeme Gregory <graeme@xora.org.uk>
Cc: Jake Oshins <jakeo@microsoft.com>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Link: http://lkml.kernel.org/r/1444737105-31573-17-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/platform-msi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/base/platform-msi.c b/drivers/base/platform-msi.c index 134483daac25..5df4575b5ba7 100644 --- a/drivers/base/platform-msi.c +++ b/drivers/base/platform-msi.c | |||
@@ -152,7 +152,7 @@ static int platform_msi_alloc_descs(struct device *dev, int nvec, | |||
152 | 152 | ||
153 | /** | 153 | /** |
154 | * platform_msi_create_irq_domain - Create a platform MSI interrupt domain | 154 | * platform_msi_create_irq_domain - Create a platform MSI interrupt domain |
155 | * @np: Optional device-tree node of the interrupt controller | 155 | * @fwnode: Optional fwnode of the interrupt controller |
156 | * @info: MSI domain info | 156 | * @info: MSI domain info |
157 | * @parent: Parent irq domain | 157 | * @parent: Parent irq domain |
158 | * | 158 | * |
@@ -162,7 +162,7 @@ static int platform_msi_alloc_descs(struct device *dev, int nvec, | |||
162 | * Returns: | 162 | * Returns: |
163 | * A domain pointer or NULL in case of failure. | 163 | * A domain pointer or NULL in case of failure. |
164 | */ | 164 | */ |
165 | struct irq_domain *platform_msi_create_irq_domain(struct device_node *np, | 165 | struct irq_domain *platform_msi_create_irq_domain(struct fwnode_handle *fwnode, |
166 | struct msi_domain_info *info, | 166 | struct msi_domain_info *info, |
167 | struct irq_domain *parent) | 167 | struct irq_domain *parent) |
168 | { | 168 | { |
@@ -173,7 +173,7 @@ struct irq_domain *platform_msi_create_irq_domain(struct device_node *np, | |||
173 | if (info->flags & MSI_FLAG_USE_DEF_CHIP_OPS) | 173 | if (info->flags & MSI_FLAG_USE_DEF_CHIP_OPS) |
174 | platform_msi_update_chip_ops(info); | 174 | platform_msi_update_chip_ops(info); |
175 | 175 | ||
176 | domain = msi_create_irq_domain(np, info, parent); | 176 | domain = msi_create_irq_domain(fwnode, info, parent); |
177 | if (domain) | 177 | if (domain) |
178 | domain->bus_token = DOMAIN_BUS_PLATFORM_MSI; | 178 | domain->bus_token = DOMAIN_BUS_PLATFORM_MSI; |
179 | 179 | ||