diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c index 7384cbcf3f..2c0f702e70 100644 --- a/src/drivers/spi/spi_flash.c +++ b/src/drivers/spi/spi_flash.c @@ -177,7 +177,7 @@ int spi_flash_cmd_erase(struct spi_flash *flash, u8 erase_cmd, printk(BIOS_DEBUG, "SF: Successfully erased %zu bytes @ %#x\n", len, start); - out: +out: spi_release_bus(flash->spi); return ret; } diff --git a/src/drivers/spi/sst.c b/src/drivers/spi/sst.c index 56cc851acf..c5bec12b66 100644 --- a/src/drivers/spi/sst.c +++ b/src/drivers/spi/sst.c @@ -193,7 +193,7 @@ sst_write(struct spi_flash *flash, u32 offset, size_t len, const void *buf) if (!ret && actual != len) ret = sst_byte_write(flash, offset, buf + actual); - done: +done: printk(BIOS_INFO, "SF: SST: program %s %zu bytes @ 0x%lx\n", ret ? "failure" : "success", len, offset - actual);