mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
iommu/amd: Use helpers to access irq_cfg data structure associated with IRQ
Use helpers to access irq_cfg data structure associated with IRQ, instead of accessing irq_data->chip_data directly. Later we can rewrite those helpers to support hierarchy irqdomain. Signed-off-by: Jiang Liu <[email protected]> Cc: Konrad Rzeszutek Wilk <[email protected]> Cc: Tony Luck <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: [email protected] Cc: Benjamin Herrenschmidt <[email protected]> Cc: Rafael J. Wysocki <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: Yinghai Lu <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Joerg Roedel <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
parent
91411da1f9
commit
719b530cdc
1 changed files with 7 additions and 7 deletions
|
|
@ -4069,7 +4069,7 @@ static int setup_ioapic_entry(int irq, struct IO_APIC_route_entry *entry,
|
|||
int devid;
|
||||
int ret;
|
||||
|
||||
cfg = irq_get_chip_data(irq);
|
||||
cfg = irq_cfg(irq);
|
||||
if (!cfg)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
@ -4132,7 +4132,7 @@ static int set_affinity(struct irq_data *data, const struct cpumask *mask,
|
|||
if (!config_enabled(CONFIG_SMP))
|
||||
return -1;
|
||||
|
||||
cfg = data->chip_data;
|
||||
cfg = irqd_cfg(data);
|
||||
irq = data->irq;
|
||||
irte_info = &cfg->irq_2_irte;
|
||||
|
||||
|
|
@ -4170,7 +4170,7 @@ static int free_irq(int irq)
|
|||
struct irq_2_irte *irte_info;
|
||||
struct irq_cfg *cfg;
|
||||
|
||||
cfg = irq_get_chip_data(irq);
|
||||
cfg = irq_cfg(irq);
|
||||
if (!cfg)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
@ -4189,7 +4189,7 @@ static void compose_msi_msg(struct pci_dev *pdev,
|
|||
struct irq_cfg *cfg;
|
||||
union irte irte;
|
||||
|
||||
cfg = irq_get_chip_data(irq);
|
||||
cfg = irq_cfg(irq);
|
||||
if (!cfg)
|
||||
return;
|
||||
|
||||
|
|
@ -4218,7 +4218,7 @@ static int msi_alloc_irq(struct pci_dev *pdev, int irq, int nvec)
|
|||
if (!pdev)
|
||||
return -EINVAL;
|
||||
|
||||
cfg = irq_get_chip_data(irq);
|
||||
cfg = irq_cfg(irq);
|
||||
if (!cfg)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
@ -4238,7 +4238,7 @@ static int msi_setup_irq(struct pci_dev *pdev, unsigned int irq,
|
|||
if (!pdev)
|
||||
return -EINVAL;
|
||||
|
||||
cfg = irq_get_chip_data(irq);
|
||||
cfg = irq_cfg(irq);
|
||||
if (!cfg)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
@ -4261,7 +4261,7 @@ static int alloc_hpet_msi(unsigned int irq, unsigned int id)
|
|||
struct irq_cfg *cfg;
|
||||
int index, devid;
|
||||
|
||||
cfg = irq_get_chip_data(irq);
|
||||
cfg = irq_cfg(irq);
|
||||
if (!cfg)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue