diff --git a/u-boot/board/ar7240/common/ar7240_flash.c b/u-boot/board/ar7240/common/ar7240_flash.c index c11f538e08..076e18bde8 100644 --- a/u-boot/board/ar7240/common/ar7240_flash.c +++ b/u-boot/board/ar7240/common/ar7240_flash.c @@ -24,7 +24,7 @@ static void ar7240_spi_write_page(uint32_t addr, uint8_t * data, int len); #endif static void ar7240_spi_sector_erase(uint32_t addr); -static void +static u32 ath_spi_read_id(void) { u32 rd = 0x777777; @@ -40,6 +40,7 @@ ath_spi_read_id(void) debug("Flash Manuf Id 0x%x, DeviceId0 0x%x, DeviceId1 0x%x\n", (rd >> 16) & 0xff, (rd >> 8) & 0xff, (rd >> 0) & 0xff); + return rd; }