Staging: rts_pstor: s/rtsx_alloc_dma_buf/kmalloc/
[firefly-linux-kernel-4.4.55.git] / drivers / staging / rts_pstor / xd.c
index b9eb072d74ee1f66156a73a82ed9e9e76735790e..a58a689fe9b5397473ac3cef7a4f782f00f713ab 100644 (file)
@@ -379,7 +379,7 @@ static void xd_clear_dma_buffer(struct rtsx_chip *chip)
 
                RTSX_DEBUGP("xD ECC error, dummy write!\n");
 
-               buf = (u8 *)rtsx_alloc_dma_buf(chip, 512, GFP_KERNEL);
+               buf = kmalloc(512, GFP_KERNEL);
                if (!buf)
                        return;