diff options
Diffstat (limited to 'arch/arm/mach-omap/am33xx_bbu_spi_mlo.c')
-rw-r--r-- | arch/arm/mach-omap/am33xx_bbu_spi_mlo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap/am33xx_bbu_spi_mlo.c b/arch/arm/mach-omap/am33xx_bbu_spi_mlo.c index 7d2ef1f0f2..2c58c9ae69 100644 --- a/arch/arm/mach-omap/am33xx_bbu_spi_mlo.c +++ b/arch/arm/mach-omap/am33xx_bbu_spi_mlo.c @@ -20,7 +20,7 @@ #include <fs.h> #include <fcntl.h> #include <linux/stat.h> -#include <mach/bbu.h> +#include <mach/omap/bbu.h> /* * AM35xx, AM33xx chips use big endian MLO for SPI NOR flash @@ -51,7 +51,7 @@ static int spi_nor_mlo_handler(struct bbu_handler *handler, ret = stat(data->devicefile, &s); if (ret) { - printf("could not open %s: %s", data->devicefile, errno_str()); + printf("could not open %s: %m", data->devicefile); return ret; } @@ -66,14 +66,14 @@ static int spi_nor_mlo_handler(struct bbu_handler *handler, dstfd = open(data->devicefile, O_WRONLY); if (dstfd < 0) { - printf("could not open %s: %s", data->devicefile, errno_str()); + printf("could not open %s: %m", data->devicefile); ret = dstfd; goto out; } ret = erase(dstfd, ERASE_SIZE_ALL, 0); if (ret < 0) { - printf("could not erase %s: %s", data->devicefile, errno_str()); + printf("could not erase %s: %m", data->devicefile); goto out1; } |