Loading drivers/staging/rts5208/ms.c +0 −11 Original line number Diff line number Diff line Loading @@ -1417,7 +1417,6 @@ static int ms_read_status_reg(struct rtsx_chip *chip) return STATUS_SUCCESS; } static int ms_read_extra_data(struct rtsx_chip *chip, u16 block_addr, u8 page_num, u8 *buf, int buf_len) { Loading Loading @@ -1582,7 +1581,6 @@ static int ms_write_extra_data(struct rtsx_chip *chip, return STATUS_SUCCESS; } static int ms_read_page(struct rtsx_chip *chip, u16 block_addr, u8 page_num) { struct ms_info *ms_card = &chip->ms_card; Loading Loading @@ -1667,7 +1665,6 @@ static int ms_read_page(struct rtsx_chip *chip, u16 block_addr, u8 page_num) return STATUS_SUCCESS; } static int ms_set_bad_block(struct rtsx_chip *chip, u16 phy_blk) { struct ms_info *ms_card = &chip->ms_card; Loading Loading @@ -1738,7 +1735,6 @@ static int ms_set_bad_block(struct rtsx_chip *chip, u16 phy_blk) return STATUS_SUCCESS; } static int ms_erase_block(struct rtsx_chip *chip, u16 phy_blk) { struct ms_info *ms_card = &chip->ms_card; Loading Loading @@ -1808,7 +1804,6 @@ static int ms_erase_block(struct rtsx_chip *chip, u16 phy_blk) return STATUS_SUCCESS; } static void ms_set_page_status(u16 log_blk, u8 type, u8 *extra, int extra_len) { if (!extra || (extra_len < MS_EXTRA_SIZE)) Loading Loading @@ -2152,7 +2147,6 @@ static int ms_copy_page(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, return STATUS_SUCCESS; } static int reset_ms(struct rtsx_chip *chip) { struct ms_info *ms_card = &chip->ms_card; Loading Loading @@ -2809,7 +2803,6 @@ static int ms_build_l2p_tbl(struct rtsx_chip *chip, int seg_no) return STATUS_FAIL; } int reset_ms_card(struct rtsx_chip *chip) { struct ms_info *ms_card = &chip->ms_card; Loading Loading @@ -2896,7 +2889,6 @@ static int mspro_set_rw_cmd(struct rtsx_chip *chip, return STATUS_SUCCESS; } void mspro_stop_seq_mode(struct rtsx_chip *chip) { struct ms_info *ms_card = &chip->ms_card; Loading Loading @@ -3312,7 +3304,6 @@ int mspro_format(struct scsi_cmnd *srb, struct rtsx_chip *chip, return STATUS_FAIL; } static int ms_read_multiple_pages(struct rtsx_chip *chip, u16 phy_blk, u16 log_blk, u8 start_page, u8 end_page, u8 *buf, unsigned int *index, Loading Loading @@ -3719,7 +3710,6 @@ static int ms_write_multiple_pages(struct rtsx_chip *chip, u16 old_blk, return STATUS_SUCCESS; } static int ms_finish_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, u16 log_blk, u8 page_off) { Loading Loading @@ -4082,7 +4072,6 @@ int ms_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, return retval; } void ms_free_l2p_tbl(struct rtsx_chip *chip) { struct ms_info *ms_card = &chip->ms_card; Loading drivers/staging/rts5208/ms.h +0 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,6 @@ #define Pro_CatagoryReg 0x06 #define Pro_ClassReg 0x07 #define Pro_SystemParm 0x10 #define Pro_DataCount1 0x11 #define Pro_DataCount0 0x12 Loading drivers/staging/rts5208/rtsx.c +0 −7 Original line number Diff line number Diff line Loading @@ -111,7 +111,6 @@ static int slave_configure(struct scsi_device *sdev) return 0; } /*********************************************************************** * /proc/scsi/ functions ***********************************************************************/ Loading Loading @@ -209,7 +208,6 @@ static int bus_reset(struct scsi_cmnd *srb) return result < 0 ? FAILED : SUCCESS; } /* * this defines our host template, with which we'll allocate hosts */ Loading Loading @@ -259,7 +257,6 @@ static struct scsi_host_template rtsx_host_template = { .module = THIS_MODULE }; static int rtsx_acquire_irq(struct rtsx_dev *dev) { struct rtsx_chip *chip = dev->chip; Loading @@ -282,7 +279,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; Loading Loading @@ -515,7 +511,6 @@ static int rtsx_control_thread(void *__dev) complete_and_exit(&dev->control_exit, 0); } static int rtsx_polling_thread(void *__dev) { struct rtsx_dev *dev = __dev; Loading Loading @@ -625,7 +620,6 @@ static irqreturn_t rtsx_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } /* Release all our dynamic resources */ static void rtsx_release_resources(struct rtsx_dev *dev) { Loading Loading @@ -994,7 +988,6 @@ static int rtsx_probe(struct pci_dev *pci, return err; } static void rtsx_remove(struct pci_dev *pci) { struct rtsx_dev *dev = pci_get_drvdata(pci); Loading drivers/staging/rts5208/rtsx.h +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,6 @@ do { \ } while (0) #define wait_timeout(msecs) wait_timeout_x(TASK_INTERRUPTIBLE, (msecs)) #define STATE_TRANS_NONE 0 #define STATE_TRANS_CMD 1 #define STATE_TRANS_BUF 2 Loading Loading @@ -138,6 +137,7 @@ static inline struct Scsi_Host *rtsx_to_host(struct rtsx_dev *dev) { return container_of((void *) dev, struct Scsi_Host, hostdata); } static inline struct rtsx_dev *host_to_rtsx(struct Scsi_Host *host) { return (struct rtsx_dev *) host->hostdata; Loading drivers/staging/rts5208/rtsx_card.c +0 −1 Original line number Diff line number Diff line Loading @@ -1065,7 +1065,6 @@ int card_share_mode(struct rtsx_chip *chip, int card) return STATUS_SUCCESS; } int select_card(struct rtsx_chip *chip, int card) { int retval; Loading Loading
drivers/staging/rts5208/ms.c +0 −11 Original line number Diff line number Diff line Loading @@ -1417,7 +1417,6 @@ static int ms_read_status_reg(struct rtsx_chip *chip) return STATUS_SUCCESS; } static int ms_read_extra_data(struct rtsx_chip *chip, u16 block_addr, u8 page_num, u8 *buf, int buf_len) { Loading Loading @@ -1582,7 +1581,6 @@ static int ms_write_extra_data(struct rtsx_chip *chip, return STATUS_SUCCESS; } static int ms_read_page(struct rtsx_chip *chip, u16 block_addr, u8 page_num) { struct ms_info *ms_card = &chip->ms_card; Loading Loading @@ -1667,7 +1665,6 @@ static int ms_read_page(struct rtsx_chip *chip, u16 block_addr, u8 page_num) return STATUS_SUCCESS; } static int ms_set_bad_block(struct rtsx_chip *chip, u16 phy_blk) { struct ms_info *ms_card = &chip->ms_card; Loading Loading @@ -1738,7 +1735,6 @@ static int ms_set_bad_block(struct rtsx_chip *chip, u16 phy_blk) return STATUS_SUCCESS; } static int ms_erase_block(struct rtsx_chip *chip, u16 phy_blk) { struct ms_info *ms_card = &chip->ms_card; Loading Loading @@ -1808,7 +1804,6 @@ static int ms_erase_block(struct rtsx_chip *chip, u16 phy_blk) return STATUS_SUCCESS; } static void ms_set_page_status(u16 log_blk, u8 type, u8 *extra, int extra_len) { if (!extra || (extra_len < MS_EXTRA_SIZE)) Loading Loading @@ -2152,7 +2147,6 @@ static int ms_copy_page(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, return STATUS_SUCCESS; } static int reset_ms(struct rtsx_chip *chip) { struct ms_info *ms_card = &chip->ms_card; Loading Loading @@ -2809,7 +2803,6 @@ static int ms_build_l2p_tbl(struct rtsx_chip *chip, int seg_no) return STATUS_FAIL; } int reset_ms_card(struct rtsx_chip *chip) { struct ms_info *ms_card = &chip->ms_card; Loading Loading @@ -2896,7 +2889,6 @@ static int mspro_set_rw_cmd(struct rtsx_chip *chip, return STATUS_SUCCESS; } void mspro_stop_seq_mode(struct rtsx_chip *chip) { struct ms_info *ms_card = &chip->ms_card; Loading Loading @@ -3312,7 +3304,6 @@ int mspro_format(struct scsi_cmnd *srb, struct rtsx_chip *chip, return STATUS_FAIL; } static int ms_read_multiple_pages(struct rtsx_chip *chip, u16 phy_blk, u16 log_blk, u8 start_page, u8 end_page, u8 *buf, unsigned int *index, Loading Loading @@ -3719,7 +3710,6 @@ static int ms_write_multiple_pages(struct rtsx_chip *chip, u16 old_blk, return STATUS_SUCCESS; } static int ms_finish_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, u16 log_blk, u8 page_off) { Loading Loading @@ -4082,7 +4072,6 @@ int ms_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, return retval; } void ms_free_l2p_tbl(struct rtsx_chip *chip) { struct ms_info *ms_card = &chip->ms_card; Loading
drivers/staging/rts5208/ms.h +0 −1 Original line number Diff line number Diff line Loading @@ -125,7 +125,6 @@ #define Pro_CatagoryReg 0x06 #define Pro_ClassReg 0x07 #define Pro_SystemParm 0x10 #define Pro_DataCount1 0x11 #define Pro_DataCount0 0x12 Loading
drivers/staging/rts5208/rtsx.c +0 −7 Original line number Diff line number Diff line Loading @@ -111,7 +111,6 @@ static int slave_configure(struct scsi_device *sdev) return 0; } /*********************************************************************** * /proc/scsi/ functions ***********************************************************************/ Loading Loading @@ -209,7 +208,6 @@ static int bus_reset(struct scsi_cmnd *srb) return result < 0 ? FAILED : SUCCESS; } /* * this defines our host template, with which we'll allocate hosts */ Loading Loading @@ -259,7 +257,6 @@ static struct scsi_host_template rtsx_host_template = { .module = THIS_MODULE }; static int rtsx_acquire_irq(struct rtsx_dev *dev) { struct rtsx_chip *chip = dev->chip; Loading @@ -282,7 +279,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; Loading Loading @@ -515,7 +511,6 @@ static int rtsx_control_thread(void *__dev) complete_and_exit(&dev->control_exit, 0); } static int rtsx_polling_thread(void *__dev) { struct rtsx_dev *dev = __dev; Loading Loading @@ -625,7 +620,6 @@ static irqreturn_t rtsx_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } /* Release all our dynamic resources */ static void rtsx_release_resources(struct rtsx_dev *dev) { Loading Loading @@ -994,7 +988,6 @@ static int rtsx_probe(struct pci_dev *pci, return err; } static void rtsx_remove(struct pci_dev *pci) { struct rtsx_dev *dev = pci_get_drvdata(pci); Loading
drivers/staging/rts5208/rtsx.h +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,6 @@ do { \ } while (0) #define wait_timeout(msecs) wait_timeout_x(TASK_INTERRUPTIBLE, (msecs)) #define STATE_TRANS_NONE 0 #define STATE_TRANS_CMD 1 #define STATE_TRANS_BUF 2 Loading Loading @@ -138,6 +137,7 @@ static inline struct Scsi_Host *rtsx_to_host(struct rtsx_dev *dev) { return container_of((void *) dev, struct Scsi_Host, hostdata); } static inline struct rtsx_dev *host_to_rtsx(struct Scsi_Host *host) { return (struct rtsx_dev *) host->hostdata; Loading
drivers/staging/rts5208/rtsx_card.c +0 −1 Original line number Diff line number Diff line Loading @@ -1065,7 +1065,6 @@ int card_share_mode(struct rtsx_chip *chip, int card) return STATUS_SUCCESS; } int select_card(struct rtsx_chip *chip, int card) { int retval; Loading