Staging: rts_pstor: s/rtsx_free_dma_buf/kfree/
[firefly-linux-kernel-4.4.55.git] / drivers / staging / rts_pstor / xd.c
index 7bcd468b8f2c2f15fff7e53cae3ce63b322c0bf6..b9eb072d74ee1f66156a73a82ed9e9e76735790e 100644 (file)
@@ -426,7 +426,7 @@ static void xd_clear_dma_buffer(struct rtsx_chip *chip)
                        rtsx_write_register(chip, CARD_STOP, SD_STOP | SD_CLR_ERR, SD_STOP | SD_CLR_ERR);
                }
 
-               rtsx_free_dma_buf(chip, buf);
+               kfree(buf);
 
                if (chip->asic_code) {
                        rtsx_write_register(chip, CARD_PULL_CTL2, 0xFF, 0x55);