diff options
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/powerpc/kernel/fadump.c | 3 | ||||
| -rw-r--r-- | arch/powerpc/kvm/book3s_xive.c | 12 | ||||
| -rw-r--r-- | arch/powerpc/platforms/powernv/vas.c | 2 | ||||
| -rw-r--r-- | arch/powerpc/platforms/pseries/msi.c | 3 | ||||
| -rw-r--r-- | arch/powerpc/sysdev/xive/common.c | 2 | 
5 files changed, 10 insertions, 12 deletions
| diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c index 5782e743fd27..4ebc333dd786 100644 --- a/arch/powerpc/kernel/fadump.c +++ b/arch/powerpc/kernel/fadump.c @@ -1747,6 +1747,9 @@ void __init fadump_setup_param_area(void)  {  	phys_addr_t range_start, range_end; +	if (!fw_dump.fadump_enabled) +		return; +  	if (!fw_dump.param_area_supported || fw_dump.dump_active)  		return; diff --git a/arch/powerpc/kvm/book3s_xive.c b/arch/powerpc/kvm/book3s_xive.c index 1302b5ac5672..89a1b8c21ab4 100644 --- a/arch/powerpc/kvm/book3s_xive.c +++ b/arch/powerpc/kvm/book3s_xive.c @@ -916,8 +916,7 @@ int kvmppc_xive_attach_escalation(struct kvm_vcpu *vcpu, u8 prio,  	 * it fires once.  	 */  	if (single_escalation) { -		struct irq_data *d = irq_get_irq_data(xc->esc_virq[prio]); -		struct xive_irq_data *xd = irq_data_get_irq_handler_data(d); +		struct xive_irq_data *xd = irq_get_chip_data(xc->esc_virq[prio]);  		xive_vm_esb_load(xd, XIVE_ESB_SET_PQ_01);  		vcpu->arch.xive_esc_raddr = xd->eoi_page; @@ -1612,7 +1611,7 @@ int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq,  	/* Grab info about irq */  	state->pt_number = hw_irq; -	state->pt_data = irq_data_get_irq_handler_data(host_data); +	state->pt_data = irq_data_get_irq_chip_data(host_data);  	/*  	 * Configure the IRQ to match the existing configuration of @@ -1787,8 +1786,7 @@ void kvmppc_xive_disable_vcpu_interrupts(struct kvm_vcpu *vcpu)   */  void xive_cleanup_single_escalation(struct kvm_vcpu *vcpu, int irq)  { -	struct irq_data *d = irq_get_irq_data(irq); -	struct xive_irq_data *xd = irq_data_get_irq_handler_data(d); +	struct xive_irq_data *xd = irq_get_chip_data(irq);  	/*  	 * This slightly odd sequence gives the right result @@ -2827,9 +2825,7 @@ int kvmppc_xive_debug_show_queues(struct seq_file *m, struct kvm_vcpu *vcpu)  				   i0, i1);  		}  		if (xc->esc_virq[i]) { -			struct irq_data *d = irq_get_irq_data(xc->esc_virq[i]); -			struct xive_irq_data *xd = -				irq_data_get_irq_handler_data(d); +			struct xive_irq_data *xd = irq_get_chip_data(xc->esc_virq[i]);  			u64 pq = xive_vm_esb_load(xd, XIVE_ESB_GET);  			seq_printf(m, "    ESC %d %c%c EOI @%llx", diff --git a/arch/powerpc/platforms/powernv/vas.c b/arch/powerpc/platforms/powernv/vas.c index b65256a63e87..9c9650319f3b 100644 --- a/arch/powerpc/platforms/powernv/vas.c +++ b/arch/powerpc/platforms/powernv/vas.c @@ -121,7 +121,7 @@ static int init_vas_instance(struct platform_device *pdev)  		return -EINVAL;  	} -	xd = irq_get_handler_data(vinst->virq); +	xd = irq_get_chip_data(vinst->virq);  	if (!xd) {  		pr_err("Inst%d: Invalid virq %d\n",  				vinst->vas_id, vinst->virq); diff --git a/arch/powerpc/platforms/pseries/msi.c b/arch/powerpc/platforms/pseries/msi.c index 825f9432e03d..a82aaa786e9e 100644 --- a/arch/powerpc/platforms/pseries/msi.c +++ b/arch/powerpc/platforms/pseries/msi.c @@ -443,8 +443,7 @@ static int pseries_msi_ops_prepare(struct irq_domain *domain, struct device *dev   */  static void pseries_msi_ops_teardown(struct irq_domain *domain, msi_alloc_info_t *arg)  { -	struct msi_desc *desc = arg->desc; -	struct pci_dev *pdev = msi_desc_to_pci_dev(desc); +	struct pci_dev *pdev = to_pci_dev(domain->dev);  	rtas_disable_msi(pdev);  } diff --git a/arch/powerpc/sysdev/xive/common.c b/arch/powerpc/sysdev/xive/common.c index 625361a15424..8d0123b0ae84 100644 --- a/arch/powerpc/sysdev/xive/common.c +++ b/arch/powerpc/sysdev/xive/common.c @@ -1580,7 +1580,7 @@ static void xive_flush_cpu_queue(unsigned int cpu, struct xive_cpu *xc)  			cpu, irq);  #endif  		raw_spin_lock(&desc->lock); -		xd = irq_desc_get_handler_data(desc); +		xd = irq_desc_get_chip_data(desc);  		/*  		 * Clear saved_p to indicate that it's no longer pending | 
