@@ -167,7 +167,8 @@ static inline void vf610_nfc_set_field(struct vf610_nfc *nfc, u32 reg,
(vf610_nfc_read(nfc, reg) & (~mask)) | val << shift);
}
-static inline void vf610_nfc_memcpy(void *dst, const void *src, size_t n)
+static inline void vf610_nfc_memcpy(void *dst, const void __iomem *src,
+ size_t n)
{
/*
* Use this accessor for the internal SRAM buffers. On the ARM
@@ -189,7 +190,7 @@ static inline void vf610_nfc_clear_status(struct vf610_nfc *nfc)
vf610_nfc_write(nfc, NFC_IRQ_STATUS, tmp);
}
-static inline void vf610_nfc_done(struct vf610_nfc *nfc)
+static void vf610_nfc_done(struct vf610_nfc *nfc)
{
unsigned long timeout = msecs_to_jiffies(100);
@@ -574,17 +575,15 @@ static int vf610_nfc_probe(struct platform_device *pdev)
goto error;
}
+ platform_set_drvdata(pdev, mtd);
+
/* Register device in MTD */
- mtd_device_parse_register(mtd, NULL,
+ return mtd_device_parse_register(mtd, NULL,
&(struct mtd_part_parser_data){
.of_node = pdev->dev.of_node,
},
NULL, 0);
- platform_set_drvdata(pdev, mtd);
-
- return 0;
-
error:
clk_disable_unprepare(nfc->clk);
return err;