Commit 1dd2c6a0 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

genirq/msi: Remove unused domain callbacks

parent 1197528a
Loading
Loading
Loading
Loading
+4 −7
Original line number Original line Diff line number Diff line
@@ -304,7 +304,6 @@ struct msi_domain_info;
 * @msi_free:		Domain specific function to free a MSI interrupts
 * @msi_free:		Domain specific function to free a MSI interrupts
 * @msi_check:		Callback for verification of the domain/info/dev data
 * @msi_check:		Callback for verification of the domain/info/dev data
 * @msi_prepare:	Prepare the allocation of the interrupts in the domain
 * @msi_prepare:	Prepare the allocation of the interrupts in the domain
 * @msi_finish:		Optional callback to finalize the allocation
 * @set_desc:		Set the msi descriptor for an interrupt
 * @set_desc:		Set the msi descriptor for an interrupt
 * @handle_error:	Optional error handler if the allocation fails
 * @handle_error:	Optional error handler if the allocation fails
 * @domain_alloc_irqs:	Optional function to override the default allocation
 * @domain_alloc_irqs:	Optional function to override the default allocation
@@ -312,12 +311,11 @@ struct msi_domain_info;
 * @domain_free_irqs:	Optional function to override the default free
 * @domain_free_irqs:	Optional function to override the default free
 *			function.
 *			function.
 *
 *
 * @get_hwirq, @msi_init and @msi_free are callbacks used by
 * @get_hwirq, @msi_init and @msi_free are callbacks used by the underlying
 * msi_create_irq_domain() and related interfaces
 * irqdomain.
 *
 *
 * @msi_check, @msi_prepare, @msi_finish, @set_desc and @handle_error
 * @msi_check, @msi_prepare, @handle_error and @set_desc are callbacks used by
 * are callbacks used by msi_domain_alloc_irqs() and related
 * msi_domain_alloc/free_irqs().
 * interfaces which are based on msi_desc.
 *
 *
 * @domain_alloc_irqs, @domain_free_irqs can be used to override the
 * @domain_alloc_irqs, @domain_free_irqs can be used to override the
 * default allocation/free functions (__msi_domain_alloc/free_irqs). This
 * default allocation/free functions (__msi_domain_alloc/free_irqs). This
@@ -351,7 +349,6 @@ struct msi_domain_ops {
	int		(*msi_prepare)(struct irq_domain *domain,
	int		(*msi_prepare)(struct irq_domain *domain,
				       struct device *dev, int nvec,
				       struct device *dev, int nvec,
				       msi_alloc_info_t *arg);
				       msi_alloc_info_t *arg);
	void		(*msi_finish)(msi_alloc_info_t *arg, int retval);
	void		(*set_desc)(msi_alloc_info_t *arg,
	void		(*set_desc)(msi_alloc_info_t *arg,
				    struct msi_desc *desc);
				    struct msi_desc *desc);
	int		(*handle_error)(struct irq_domain *domain,
	int		(*handle_error)(struct irq_domain *domain,
+0 −5
Original line number Original line Diff line number Diff line
@@ -562,8 +562,6 @@ int __msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev,
			ret = -ENOSPC;
			ret = -ENOSPC;
			if (ops->handle_error)
			if (ops->handle_error)
				ret = ops->handle_error(domain, desc, ret);
				ret = ops->handle_error(domain, desc, ret);
			if (ops->msi_finish)
				ops->msi_finish(&arg, ret);
			return ret;
			return ret;
		}
		}


@@ -573,9 +571,6 @@ int __msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev,
		}
		}
	}
	}


	if (ops->msi_finish)
		ops->msi_finish(&arg, 0);

	can_reserve = msi_check_reservation_mode(domain, info, dev);
	can_reserve = msi_check_reservation_mode(domain, info, dev);


	/*
	/*