diff options
| -rw-r--r-- | drivers/iommu/amd_iommu.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index 2d84c9edf3b8..d65f76643664 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c | |||
| @@ -4069,7 +4069,7 @@ static int setup_ioapic_entry(int irq, struct IO_APIC_route_entry *entry, | |||
| 4069 | int devid; | 4069 | int devid; |
| 4070 | int ret; | 4070 | int ret; |
| 4071 | 4071 | ||
| 4072 | cfg = irq_get_chip_data(irq); | 4072 | cfg = irq_cfg(irq); |
| 4073 | if (!cfg) | 4073 | if (!cfg) |
| 4074 | return -EINVAL; | 4074 | return -EINVAL; |
| 4075 | 4075 | ||
| @@ -4132,7 +4132,7 @@ static int set_affinity(struct irq_data *data, const struct cpumask *mask, | |||
| 4132 | if (!config_enabled(CONFIG_SMP)) | 4132 | if (!config_enabled(CONFIG_SMP)) |
| 4133 | return -1; | 4133 | return -1; |
| 4134 | 4134 | ||
| 4135 | cfg = data->chip_data; | 4135 | cfg = irqd_cfg(data); |
| 4136 | irq = data->irq; | 4136 | irq = data->irq; |
| 4137 | irte_info = &cfg->irq_2_irte; | 4137 | irte_info = &cfg->irq_2_irte; |
| 4138 | 4138 | ||
| @@ -4170,7 +4170,7 @@ static int free_irq(int irq) | |||
| 4170 | struct irq_2_irte *irte_info; | 4170 | struct irq_2_irte *irte_info; |
| 4171 | struct irq_cfg *cfg; | 4171 | struct irq_cfg *cfg; |
| 4172 | 4172 | ||
| 4173 | cfg = irq_get_chip_data(irq); | 4173 | cfg = irq_cfg(irq); |
| 4174 | if (!cfg) | 4174 | if (!cfg) |
| 4175 | return -EINVAL; | 4175 | return -EINVAL; |
| 4176 | 4176 | ||
| @@ -4189,7 +4189,7 @@ static void compose_msi_msg(struct pci_dev *pdev, | |||
| 4189 | struct irq_cfg *cfg; | 4189 | struct irq_cfg *cfg; |
| 4190 | union irte irte; | 4190 | union irte irte; |
| 4191 | 4191 | ||
| 4192 | cfg = irq_get_chip_data(irq); | 4192 | cfg = irq_cfg(irq); |
| 4193 | if (!cfg) | 4193 | if (!cfg) |
| 4194 | return; | 4194 | return; |
| 4195 | 4195 | ||
| @@ -4218,7 +4218,7 @@ static int msi_alloc_irq(struct pci_dev *pdev, int irq, int nvec) | |||
| 4218 | if (!pdev) | 4218 | if (!pdev) |
| 4219 | return -EINVAL; | 4219 | return -EINVAL; |
| 4220 | 4220 | ||
| 4221 | cfg = irq_get_chip_data(irq); | 4221 | cfg = irq_cfg(irq); |
| 4222 | if (!cfg) | 4222 | if (!cfg) |
| 4223 | return -EINVAL; | 4223 | return -EINVAL; |
| 4224 | 4224 | ||
| @@ -4238,7 +4238,7 @@ static int msi_setup_irq(struct pci_dev *pdev, unsigned int irq, | |||
| 4238 | if (!pdev) | 4238 | if (!pdev) |
| 4239 | return -EINVAL; | 4239 | return -EINVAL; |
| 4240 | 4240 | ||
| 4241 | cfg = irq_get_chip_data(irq); | 4241 | cfg = irq_cfg(irq); |
| 4242 | if (!cfg) | 4242 | if (!cfg) |
| 4243 | return -EINVAL; | 4243 | return -EINVAL; |
| 4244 | 4244 | ||
| @@ -4261,7 +4261,7 @@ static int alloc_hpet_msi(unsigned int irq, unsigned int id) | |||
| 4261 | struct irq_cfg *cfg; | 4261 | struct irq_cfg *cfg; |
| 4262 | int index, devid; | 4262 | int index, devid; |
| 4263 | 4263 | ||
| 4264 | cfg = irq_get_chip_data(irq); | 4264 | cfg = irq_cfg(irq); |
| 4265 | if (!cfg) | 4265 | if (!cfg) |
| 4266 | return -EINVAL; | 4266 | return -EINVAL; |
| 4267 | 4267 | ||
