From patchwork Wed Feb 10 19:08:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 581572 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 479BD140325 for ; Thu, 11 Feb 2016 06:15:05 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 87981A767A; Wed, 10 Feb 2016 20:12:36 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ADCcrJygwKRe; Wed, 10 Feb 2016 20:12:36 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5F41AA765A; Wed, 10 Feb 2016 20:12:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 01DDAA7647 for ; Wed, 10 Feb 2016 20:12:08 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FehTbQNhfFmk for ; Wed, 10 Feb 2016 20:12:07 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by theia.denx.de (Postfix) with ESMTPS id 21404A7611 for ; Wed, 10 Feb 2016 20:11:48 +0100 (CET) Received: by mail-pf0-f193.google.com with SMTP id w128so797885pfb.2 for ; Wed, 10 Feb 2016 11:11:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6aRquWseJC89ojVWXuHAnfoQqv2M/Geu+Z6lrMVm39Q=; b=gmc8yzx6YpDU0CPiUn2UIoIcIADzlEMaSi0k1NSIAY/6hKEKUBAO2J3szvmQvkPA8d hc6Y/Cz259S5rJxYlVIGrCfHIv6Hj5WgKc9BUM6vIPnNTgokOOX+bndZv5xVrEdWZ5Zl 2LJXwKwHcjc1AxXiULUyR/BDmIc3UI9lujDhGLxyZuX9q//pb1MkZgPltH7e3AGVmyOI WM3I14/mj52OktpXd3oKAp7LhUwEKdevB2ejKJLw5j2SZpIG16g0k/cZsCl8n/L9Hjcr yKGc8EPy6IAQAe0pv7hUDf0xjFtFkN4U42aX5Qp3M0zZA9HTOYToswT+qpSF812oQooD HvnA== X-Gm-Message-State: AG10YOT1JYh7QvdAKMeCCDyGc0Fuu/Vz5UWvQdNQ4GpVW8CBb6vHmS/XPBQo8Rvurwp+PA== X-Received: by 10.98.8.80 with SMTP id c77mr38799231pfd.42.1455131507641; Wed, 10 Feb 2016 11:11:47 -0800 (PST) Received: from localhost.localdomain ([123.236.183.254]) by smtp.gmail.com with ESMTPSA id n78sm6915903pfb.53.2016.02.10.11.11.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Feb 2016 11:11:46 -0800 (PST) From: Jagan Teki To: u-boot@lists.denx.de Date: Thu, 11 Feb 2016 00:38:18 +0530 Message-Id: <1455131307-25406-24-git-send-email-jteki@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455131307-25406-1-git-send-email-jteki@openedev.com> References: <1455131307-25406-1-git-send-email-jteki@openedev.com> Cc: Tom Rini , Michal Simek , Siva Durga Prasad Paladugu , Jagan Teki Subject: [U-Boot] [PATCH v5 23/32] mtd: spi-nor: spi_spl_load: Use mtd_info X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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; /*