mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
genirq: Get rid of GENERIC_MSI_IRQ_DOMAIN
Adjust to reality and remove another layer of pointless Kconfig indirection. CONFIG_GENERIC_MSI_IRQ is good enough to serve all purposes. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20221111122014.524842979@linutronix.de
This commit is contained in:
@@ -378,10 +378,8 @@ struct dev_links_info {
|
||||
* @data: Pointer to MSI device data
|
||||
*/
|
||||
struct dev_msi_info {
|
||||
#ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN
|
||||
struct irq_domain *domain;
|
||||
#endif
|
||||
#ifdef CONFIG_GENERIC_MSI_IRQ
|
||||
struct irq_domain *domain;
|
||||
struct msi_device_data *data;
|
||||
#endif
|
||||
};
|
||||
@@ -742,7 +740,7 @@ static inline void set_dev_node(struct device *dev, int node)
|
||||
|
||||
static inline struct irq_domain *dev_get_msi_domain(const struct device *dev)
|
||||
{
|
||||
#ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN
|
||||
#ifdef CONFIG_GENERIC_MSI_IRQ
|
||||
return dev->msi.domain;
|
||||
#else
|
||||
return NULL;
|
||||
@@ -751,7 +749,7 @@ static inline struct irq_domain *dev_get_msi_domain(const struct device *dev)
|
||||
|
||||
static inline void dev_set_msi_domain(struct device *dev, struct irq_domain *d)
|
||||
{
|
||||
#ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN
|
||||
#ifdef CONFIG_GENERIC_MSI_IRQ
|
||||
dev->msi.domain = d;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user