[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190602150418.31723-2-benniciemanuel78@gmail.com>
Date: Sun, 2 Jun 2019 17:04:13 +0200
From: Emanuel Bennici <benniciemanuel78@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Bjorn Helgaas <bhelgaas@...gle.com>, Joe Perches <joe@...ches.com>
Subject: [PATCH 2/2] pci: shpchp: Remove function hpc_get_mode1_ECC_cap
Remove function hpc_get_mode1_ECC_cap since it was used by the
get_mode1_ECC_cap Callback - that was removed.
So this function is unused and can be safely removed.
Signed-off-by: Emanuel Bennici <benniciemanuel78@...il.com>
---
drivers/pci/hotplug/shpchp_hpc.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/drivers/pci/hotplug/shpchp_hpc.c b/drivers/pci/hotplug/shpchp_hpc.c
index 59f75e567c63..a6d713360dca 100644
--- a/drivers/pci/hotplug/shpchp_hpc.c
+++ b/drivers/pci/hotplug/shpchp_hpc.c
@@ -494,23 +494,6 @@ static int hpc_get_adapter_speed(struct slot *slot, enum pci_bus_speed *value)
return retval;
}
-static int hpc_get_mode1_ECC_cap(struct slot *slot, u8 *mode)
-{
- int retval = 0;
- struct controller *ctrl = slot->ctrl;
- u16 sec_bus_status = shpc_readw(ctrl, SEC_BUS_CONFIG);
- u8 pi = shpc_readb(ctrl, PROG_INTERFACE);
-
- if (pi == 2) {
- *mode = (sec_bus_status & 0x0100) >> 8;
- } else {
- retval = -1;
- }
-
- ctrl_dbg(ctrl, "Mode 1 ECC cap = %d\n", *mode);
- return retval;
-}
-
static int hpc_query_power_fault(struct slot *slot)
{
struct controller *ctrl = slot->ctrl;
--
2.19.1
Powered by blists - more mailing lists