From: Guilherme Giacomo Simoes Date: Mon, 14 Oct 2024 13:19:17 +0000 (-0300) Subject: PCI: cpcihp: Remove unused struct cpci_hp_controller_ops.hardware_test X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5b036cada481a7a3bf30d333298f6d83dfb19bed;p=users%2Fdwmw2%2Flinux.git PCI: cpcihp: Remove unused struct cpci_hp_controller_ops.hardware_test The 'hardware_test' field in struct cpci_hp_controller_ops is unused; remove it to reduce resource consumption. Link: https://lore.kernel.org/r/20241014131917.324667-1-trintaeoitogc@gmail.com Signed-off-by: Guilherme Giacomo Simoes [bhelgas: commit log] Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/hotplug/cpci_hotplug.h b/drivers/pci/hotplug/cpci_hotplug.h index 6d8970d8c3f29..03fa39ab0c884 100644 --- a/drivers/pci/hotplug/cpci_hotplug.h +++ b/drivers/pci/hotplug/cpci_hotplug.h @@ -44,7 +44,6 @@ struct cpci_hp_controller_ops { int (*enable_irq)(void); int (*disable_irq)(void); int (*check_irq)(void *dev_id); - int (*hardware_test)(struct slot *slot, u32 value); u8 (*get_power)(struct slot *slot); int (*set_power)(struct slot *slot, int value); };