@@ -122,17 +122,17 @@ static void dpc_work(struct work_struct *work)
ctl | PCI_EXP_DPC_CTL_INT_EN);
}
-static void dpc_rp_pio_get_info(struct dpc_dev *dpc)
+static void dpc_process_rp_pio_error(struct dpc_dev *dpc)
{
struct device *dev = &dpc->dev->device;
struct pci_dev *pdev = dpc->dev->port;
- int i;
u16 cap = dpc->cap_pos;
u32 status, mask;
u32 sev, syserr, exc;
u16 dpc_status, first_error;
u32 dw0, dw1, dw2, dw3;
u32 log;
+ int i;
u32 prefix;
pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_STATUS, &status);
@@ -184,12 +184,6 @@ static void dpc_rp_pio_get_info(struct dpc_dev *dpc)
}
}
-static void dpc_process_rp_pio_error(struct dpc_dev *dpc)
-{
- dpc_rp_pio_get_info(dpc);
-
-}
-
static irqreturn_t dpc_irq(int irq, void *context)
{
struct dpc_dev *dpc = (struct dpc_dev *)context;