return STATUS_SUCCESS;
 }
 
-
 static int ms_read_extra_data(struct rtsx_chip *chip,
                u16 block_addr, u8 page_num, u8 *buf, int buf_len)
 {
        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;
        return STATUS_SUCCESS;
 }
 
-
 static int ms_set_bad_block(struct rtsx_chip *chip, u16 phy_blk)
 {
        struct ms_info *ms_card = &chip->ms_card;
        return STATUS_SUCCESS;
 }
 
-
 static int ms_erase_block(struct rtsx_chip *chip, u16 phy_blk)
 {
        struct ms_info *ms_card = &chip->ms_card;
        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))
        return STATUS_SUCCESS;
 }
 
-
 static int reset_ms(struct rtsx_chip *chip)
 {
        struct ms_info *ms_card = &chip->ms_card;
        return STATUS_FAIL;
 }
 
-
 int reset_ms_card(struct rtsx_chip *chip)
 {
        struct ms_info *ms_card = &chip->ms_card;
        return STATUS_SUCCESS;
 }
 
-
 void mspro_stop_seq_mode(struct rtsx_chip *chip)
 {
        struct ms_info *ms_card = &chip->ms_card;
        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,
        return STATUS_SUCCESS;
 }
 
-
 static int ms_finish_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk,
                u16 log_blk, u8 page_off)
 {
        return retval;
 }
 
-
 void ms_free_l2p_tbl(struct rtsx_chip *chip)
 {
        struct ms_info *ms_card = &chip->ms_card;
 
 #define Pro_CatagoryReg                0x06
 #define Pro_ClassReg           0x07
 
-
 #define Pro_SystemParm         0x10
 #define Pro_DataCount1         0x11
 #define Pro_DataCount0         0x12
 
        return 0;
 }
 
-
 /***********************************************************************
  * /proc/scsi/ functions
  ***********************************************************************/
        return result < 0 ? FAILED : SUCCESS;
 }
 
-
 /*
  * this defines our host template, with which we'll allocate hosts
  */
        .module =                       THIS_MODULE
 };
 
-
 static int rtsx_acquire_irq(struct rtsx_dev *dev)
 {
        struct rtsx_chip *chip = dev->chip;
        return 0;
 }
 
-
 int rtsx_read_pci_cfg_byte(u8 bus, u8 dev, u8 func, u8 offset, u8 *val)
 {
        struct pci_dev *pdev;
        complete_and_exit(&dev->control_exit, 0);
 }
 
-
 static int rtsx_polling_thread(void *__dev)
 {
        struct rtsx_dev *dev = __dev;
        return IRQ_HANDLED;
 }
 
-
 /* Release all our dynamic resources */
 static void rtsx_release_resources(struct rtsx_dev *dev)
 {
        return err;
 }
 
-
 static void rtsx_remove(struct pci_dev *pci)
 {
        struct rtsx_dev *dev = pci_get_drvdata(pci);
 
 } 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
 {
        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;
 
        return STATUS_SUCCESS;
 }
 
-
 int select_card(struct rtsx_chip *chip, int card)
 {
        int retval;
 
 #define TRANSPORT_NO_SENSE     2  /* Command failed, no auto-sense    */
 #define TRANSPORT_ERROR                3   /* Transport bad (i.e. device dead) */
 
-
 /*-----------------------------------
     Start-Stop-Unit
 -----------------------------------*/
 #define ASCQ_LOAD_EJCT_ERR      0x00
 #define        ASCQ_WRITE_PROTECT      0x00
 
-
 struct sense_data_t {
        unsigned char   err_code;       /* error code */
        /* bit7 : valid */
 #define MS_OC_INT_EN           (1 << 23)
 #define SD_OC_INT_EN           (1 << 22)
 
-
 #define READ_REG_CMD           0
 #define WRITE_REG_CMD          1
 #define CHECK_REG_CMD          2
 #define HOST_TO_DEVICE         0
 #define DEVICE_TO_HOST         1
 
-
 #define RTSX_RESV_BUF_LEN      4096
 #define HOST_CMDS_BUF_LEN      1024
 #define HOST_SG_TBL_BUF_LEN    (RTSX_RESV_BUF_LEN - HOST_CMDS_BUF_LEN)
 #define XD_FREE_TABLE_CNT      1200
 #define MS_FREE_TABLE_CNT      512
 
-
 /* Bit Operation */
 #define SET_BIT(data, idx)     ((data) |= 1 << (idx))
 #define CLR_BIT(data, idx)     ((data) &= ~(1 << (idx)))
        int spi_clock;
 };
 
-
 #ifdef _MSG_TRACE
 struct trace_msg_t {
        u16 line;
 
        return TRANSPORT_GOOD;
 }
 
-
 static int start_stop_unit(struct scsi_cmnd *srb, struct rtsx_chip *chip)
 {
        unsigned int lun = SCSI_LUN(srb);
        return TRANSPORT_ERROR;
 }
 
-
 static int allow_medium_removal(struct scsi_cmnd *srb, struct rtsx_chip *chip)
 {
        int prevent;
        return TRANSPORT_GOOD;
 }
 
-
 static int request_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip)
 {
        struct sense_data_t *sense;
        return result;
 }
 
-
 static int read_status(struct scsi_cmnd *srb, struct rtsx_chip *chip)
 {
        u8 rtsx_status[16];
 
        unsigned int buflen, struct scsi_cmnd *srb);
 void rtsx_invoke_transport(struct scsi_cmnd *srb, struct rtsx_chip *chip);
 
-
 #define rtsx_init_cmd(chip)                    ((chip)->ci = 0)
 
 void rtsx_add_cmd(struct rtsx_chip *chip,
 
                        continue;
                }
 
-
                if (func_to_switch)
                        break;
 
        return STATUS_SUCCESS;
 }
 
-
 static int mmc_test_switch_bus(struct rtsx_chip *chip, u8 width)
 {
        struct sd_info *sd_card = &(chip->sd_card);
        return SWITCH_FAIL;
 }
 
-
 static int mmc_switch_timing_bus(struct rtsx_chip *chip, bool switch_ddr)
 {
        struct sd_info *sd_card = &(chip->sd_card);
        return STATUS_SUCCESS;
 }
 
-
 static int reset_mmc(struct rtsx_chip *chip)
 {
        struct sd_info *sd_card = &(chip->sd_card);
 
 int spi_erase_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip);
 int spi_write_flash_status(struct scsi_cmnd *srb, struct rtsx_chip *chip);
 
-
 #endif  /* __REALTEK_RTSX_SPI_H */
 
                != (XD_ECC1_ALL1 | XD_ECC2_ALL1))
                return 0;
 
-
        for (i = 0; i < 4; i++) {
                if (redunt[RESERVED0 + i] != 0xFF)
                        return 0;
        return STATUS_FAIL;
 }
 
-
 static int xd_build_l2p_tbl(struct rtsx_chip *chip, int zone_no)
 {
        struct xd_info *xd_card = &(chip->xd_card);
        return STATUS_SUCCESS;
 }
 
-
 static int xd_write_multiple_pages(struct rtsx_chip *chip, u32 old_blk,
                                u32 new_blk, u32 log_blk, u8 start_page,
                                u8 end_page, u8 *buf, unsigned int *index,
                return STATUS_FAIL;
        }
 
-
        if (detect_card_cd(chip, XD_CARD) != STATUS_SUCCESS) {
                chip->card_fail |= XD_CARD;
                set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);