From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jagan Teki Date: Mon, 15 Feb 2016 02:18:24 +0530 Subject: [U-Boot] [PATCH v6 25/76] mtd: spi-nor: spi_spl_load: Use mtd_info In-Reply-To: <1455482955-19053-1-git-send-email-jteki@openedev.com> References: <1455482955-19053-1-git-send-email-jteki@openedev.com> Message-ID: <1455482955-19053-25-git-send-email-jteki@openedev.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Replace spi_flash{} with mtd_info{} Cc: Simon Glass Cc: Bin Meng Cc: Mugunthan V N Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Signed-off-by: Jagan Teki --- drivers/mtd/spi-nor/spi_spl_load.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/spi-nor/spi_spl_load.c b/drivers/mtd/spi-nor/spi_spl_load.c index 285b6da..9f33826 100644 --- a/drivers/mtd/spi-nor/spi_spl_load.c +++ b/drivers/mtd/spi-nor/spi_spl_load.c @@ -20,8 +20,7 @@ * Load the kernel, check for a valid header we can parse, and if found load * the kernel and then device tree. */ -static int spi_load_image_os(struct spi_flash *flash, - struct image_header *header) +static int spi_load_image_os(spi_flash_t *flash, struct image_header *header) { /* Read for a header, parse or error out. */ spi_flash_read(flash, CONFIG_SYS_SPI_KERNEL_OFFS, 0x40, @@ -52,7 +51,7 @@ static int spi_load_image_os(struct spi_flash *flash, int spl_spi_load_image(void) { int err = 0; - struct spi_flash *flash; + spi_flash_t *flash; struct image_header *header; /* -- 1.9.1