omap/am33xx_bbu: use file_write_flash() instead of its own variant
There are two differences between file_write_flash() and write_image()
(which is removed in this patch):

 - file_write_flash() uses write_full() vs. write() in write_image()
 - file_write_flash() doesn't erase the whole device but only the needed
   space

So the new code should be more robust and maybe even faster.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent fd3ecff commit 9afdc614d0c8c6de913444d8fbb1a066eb957fc7
@Uwe Kleine-König Uwe Kleine-König authored on 1 Jun 2018
Sascha Hauer committed on 8 Jun 2018
Showing 1 changed file
View
arch/arm/mach-omap/am33xx_bbu_nand.c