]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
PCI: cpcihp: Remove unused struct cpci_hp_controller_ops.hardware_test
authorGuilherme Giacomo Simoes <trintaeoitogc@gmail.com>
Mon, 14 Oct 2024 13:19:17 +0000 (10:19 -0300)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 18 Oct 2024 23:31:52 +0000 (18:31 -0500)
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 <trintaeoitogc@gmail.com>
[bhelgas: commit log]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/cpci_hotplug.h

index 6d8970d8c3f297d74a9e4e87a44fb54d624f9e34..03fa39ab0c8846cb8b2152668182d2229aeaeb38 100644 (file)
@@ -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);
 };