Skip to content

Commit beb0622

Browse files
author
Marc Zyngier
committed
genirq: Kill irq_chip::parent_device
Now that noone is using irq_chip::parent_device in the tree, get rid of it. Signed-off-by: Marc Zyngier <maz@kernel.org> Acked-by: Bartosz Golaszewski <brgl@bgdev.pl> Link: https://lore.kernel.org/r/20220201120310.878267-13-maz@kernel.org
1 parent 0d872ed commit beb0622

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

include/linux/irq.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ static inline irq_hw_number_t irqd_to_hwirq(struct irq_data *d)
456456
/**
457457
* struct irq_chip - hardware interrupt chip descriptor
458458
*
459-
* @parent_device: pointer to parent device for irqchip
460459
* @name: name for /proc/interrupts
461460
* @irq_startup: start up the interrupt (defaults to ->enable if NULL)
462461
* @irq_shutdown: shut down the interrupt (defaults to ->disable if NULL)
@@ -503,7 +502,6 @@ static inline irq_hw_number_t irqd_to_hwirq(struct irq_data *d)
503502
* @flags: chip specific flags
504503
*/
505504
struct irq_chip {
506-
struct device *parent_device;
507505
const char *name;
508506
unsigned int (*irq_startup)(struct irq_data *data);
509507
void (*irq_shutdown)(struct irq_data *data);

kernel/irq/chip.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,9 +1560,6 @@ int irq_chip_compose_msi_msg(struct irq_data *data, struct msi_msg *msg)
15601560

15611561
static struct device *irq_get_parent_device(struct irq_data *data)
15621562
{
1563-
if (data->chip->parent_device)
1564-
return data->chip->parent_device;
1565-
15661563
if (data->domain)
15671564
return data->domain->dev;
15681565

0 commit comments

Comments
 (0)