-@@ -1164,13 +1168,13 @@ static int sunxi_nfc_hw_syndrome_ecc_wri
- /* Fill OOB data in */
- if (oob_required) {
- tmp = 0xffffffff;
-- memcpy_toio(nfc->regs + NFC_REG_USER_DATA_BASE, &tmp,
-- 4);
- } else {
-- memcpy_toio(nfc->regs + NFC_REG_USER_DATA_BASE, oob,
-- 4);
-+ memcpy(&tmp, oob, sizeof(tmp));
-+ tmp = le32_to_cpu(tmp);
- }
-
-+ writel(tmp, nfc->regs + NFC_REG_USER_DATA_BASE);
-+
- cnt = ecc->bytes + 4;
- if (rnd &&
- nand_rnd_is_activ(mtd, rnd->page, offset, &cnt) > 0 &&