staging: rts5208: remove rtsx_read_pci_cfg_byte()
authorSinan Kaya <okaya@codeaurora.org>
Mon, 27 Nov 2017 16:58:00 +0000 (11:58 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2017 13:20:50 +0000 (14:20 +0100)
Remove unused rtsx_read_pci_cfg_byte() function.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx.c
drivers/staging/rts5208/rtsx.h

index 89e2cfe..70e0b86 100644 (file)
@@ -275,23 +275,6 @@ static int rtsx_acquire_irq(struct rtsx_dev *dev)
        return 0;
 }
 
-int rtsx_read_pci_cfg_byte(u8 bus, u8 dev, u8 func, u8 offset, u8 *val)
-{
-       struct pci_dev *pdev;
-       u8 data;
-       u8 devfn = (dev << 3) | func;
-
-       pdev = pci_get_bus_and_slot(bus, devfn);
-       if (!pdev)
-               return -1;
-
-       pci_read_config_byte(pdev, offset, &data);
-       if (val)
-               *val = data;
-
-       return 0;
-}
-
 #ifdef CONFIG_PM
 /*
  * power management
index 575e573..62e467c 100644 (file)
@@ -174,8 +174,6 @@ static inline void get_current_time(u8 *timeval_buf, int buf_len)
 /* struct scsi_cmnd transfer buffer access utilities */
 enum xfer_buf_dir      {TO_XFER_BUF, FROM_XFER_BUF};
 
-int rtsx_read_pci_cfg_byte(u8 bus, u8 dev, u8 func, u8 offset, u8 *val);
-
 #define _MSG_TRACE
 
 #include "trace.h"