提交 2569f62c 编写于 作者: T Thomas Gleixner

genirq/msi: Remove msi_domain_ops:: Msi_check()

No more users.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Reviewed-by: NJason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20221111122015.807616900@linutronix.de
上级 9c03b258
...@@ -292,7 +292,6 @@ struct msi_domain_info; ...@@ -292,7 +292,6 @@ struct msi_domain_info;
* @get_hwirq: Retrieve the resulting hw irq number * @get_hwirq: Retrieve the resulting hw irq number
* @msi_init: Domain specific init function for MSI interrupts * @msi_init: Domain specific init function for MSI interrupts
* @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_prepare: Prepare the allocation of the interrupts in the domain * @msi_prepare: Prepare the allocation of the interrupts in the domain
* @set_desc: Set the msi descriptor for an interrupt * @set_desc: Set the msi descriptor for an interrupt
* @domain_alloc_irqs: Optional function to override the default allocation * @domain_alloc_irqs: Optional function to override the default allocation
...@@ -330,9 +329,6 @@ struct msi_domain_ops { ...@@ -330,9 +329,6 @@ struct msi_domain_ops {
void (*msi_free)(struct irq_domain *domain, void (*msi_free)(struct irq_domain *domain,
struct msi_domain_info *info, struct msi_domain_info *info,
unsigned int virq); unsigned int virq);
int (*msi_check)(struct irq_domain *domain,
struct msi_domain_info *info,
struct device *dev);
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);
......
...@@ -617,17 +617,9 @@ static int msi_domain_ops_init(struct irq_domain *domain, ...@@ -617,17 +617,9 @@ static int msi_domain_ops_init(struct irq_domain *domain,
return 0; return 0;
} }
static int msi_domain_ops_check(struct irq_domain *domain,
struct msi_domain_info *info,
struct device *dev)
{
return 0;
}
static struct msi_domain_ops msi_domain_ops_default = { static struct msi_domain_ops msi_domain_ops_default = {
.get_hwirq = msi_domain_ops_get_hwirq, .get_hwirq = msi_domain_ops_get_hwirq,
.msi_init = msi_domain_ops_init, .msi_init = msi_domain_ops_init,
.msi_check = msi_domain_ops_check,
.msi_prepare = msi_domain_ops_prepare, .msi_prepare = msi_domain_ops_prepare,
.set_desc = msi_domain_ops_set_desc, .set_desc = msi_domain_ops_set_desc,
.domain_alloc_irqs = __msi_domain_alloc_irqs, .domain_alloc_irqs = __msi_domain_alloc_irqs,
...@@ -655,8 +647,6 @@ static void msi_domain_update_dom_ops(struct msi_domain_info *info) ...@@ -655,8 +647,6 @@ static void msi_domain_update_dom_ops(struct msi_domain_info *info)
ops->get_hwirq = msi_domain_ops_default.get_hwirq; ops->get_hwirq = msi_domain_ops_default.get_hwirq;
if (ops->msi_init == NULL) if (ops->msi_init == NULL)
ops->msi_init = msi_domain_ops_default.msi_init; ops->msi_init = msi_domain_ops_default.msi_init;
if (ops->msi_check == NULL)
ops->msi_check = msi_domain_ops_default.msi_check;
if (ops->msi_prepare == NULL) if (ops->msi_prepare == NULL)
ops->msi_prepare = msi_domain_ops_default.msi_prepare; ops->msi_prepare = msi_domain_ops_default.msi_prepare;
if (ops->set_desc == NULL) if (ops->set_desc == NULL)
...@@ -707,13 +697,8 @@ int msi_domain_prepare_irqs(struct irq_domain *domain, struct device *dev, ...@@ -707,13 +697,8 @@ int msi_domain_prepare_irqs(struct irq_domain *domain, struct device *dev,
{ {
struct msi_domain_info *info = domain->host_data; struct msi_domain_info *info = domain->host_data;
struct msi_domain_ops *ops = info->ops; struct msi_domain_ops *ops = info->ops;
int ret;
ret = ops->msi_check(domain, info, dev);
if (ret == 0)
ret = ops->msi_prepare(domain, dev, nvec, arg);
return ret; return ops->msi_prepare(domain, dev, nvec, arg);
} }
int msi_domain_populate_irqs(struct irq_domain *domain, struct device *dev, int msi_domain_populate_irqs(struct irq_domain *domain, struct device *dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册