From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jagan Teki Date: Fri, 12 Feb 2016 14:06:12 +0530 Subject: [U-Boot] [PATCH 07/12] mtd: dataflash: Drop sf_internal.h In-Reply-To: <1455266174-3240-1-git-send-email-jteki@openedev.com> References: <1455266174-3240-1-git-send-email-jteki@openedev.com> Message-ID: <1455266174-3240-8-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 Drop using sf_internal.h and get the RDID from spi-nor.h Cc: Bin Meng Cc: Simon Glass Cc: York Sun Cc: Haikun Wang Signed-off-by: Jagan Teki --- drivers/mtd/spi-nor/sf_dataflash.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/spi-nor/sf_dataflash.c b/drivers/mtd/spi-nor/sf_dataflash.c index 525af0a..9943560 100644 --- a/drivers/mtd/spi-nor/sf_dataflash.c +++ b/drivers/mtd/spi-nor/sf_dataflash.c @@ -17,8 +17,7 @@ #include #include #include - -#include "sf_internal.h" +#include /* reads can bypass the buffers */ #define OP_READ_CONTINUOUS 0xE8 @@ -519,7 +518,7 @@ static struct flash_info *jedec_probe(struct spi_slave *spi) uint8_t id[5]; uint32_t jedec; struct flash_info *info; - u8 cmd = CMD_READ_ID; + u8 cmd = SNOR_OP_RDID; int status; /* -- 1.9.1