From 3891c016660b70c47d07885158a178a354b29515 Mon Sep 17 00:00:00 2001 From: Gokul Sriram Palanisamy Date: Wed, 27 Jul 2016 12:46:43 +0530 Subject: [PATCH] qca: Moved CONFIG_SF_DEFAULT_SPEED to board specific To avoid compiler warning. Change-Id: Iedbbbe9166af77286715c7a6b09a90f00cb3b34e Signed-off-by: Gokul Sriram Palanisamy --- drivers/mtd/ipq_spi_flash.c | 2 -- include/configs/ipq40xx.h | 1 + include/configs/ipq807x.h | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/ipq_spi_flash.c b/drivers/mtd/ipq_spi_flash.c index 0063f2057c..feee5d42ed 100644 --- a/drivers/mtd/ipq_spi_flash.c +++ b/drivers/mtd/ipq_spi_flash.c @@ -133,8 +133,6 @@ int ipq_spi_init(u16 idx) int ret; struct mtd_info *mtd; -#define CONFIG_SF_DEFAULT_SPEED (48 * 1000 * 1000) - flash = spi_flash_probe(CONFIG_SF_DEFAULT_BUS, CONFIG_SF_DEFAULT_CS, CONFIG_SF_DEFAULT_SPEED, diff --git a/include/configs/ipq40xx.h b/include/configs/ipq40xx.h index 1e24c0a6ee..908edcf3ac 100644 --- a/include/configs/ipq40xx.h +++ b/include/configs/ipq40xx.h @@ -173,6 +173,7 @@ typedef struct { #define CONFIG_SF_DEFAULT_BUS 0 #define CONFIG_SF_DEFAULT_CS 0 #define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 +#define CONFIG_SF_DEFAULT_SPEED (48 * 1000 * 1000) #define CONFIG_SPI_FLASH_BAR 1 #define CONFIG_IPQ40XX_EDMA 1 diff --git a/include/configs/ipq807x.h b/include/configs/ipq807x.h index 78a9318e01..92f0febcf8 100644 --- a/include/configs/ipq807x.h +++ b/include/configs/ipq807x.h @@ -101,6 +101,7 @@ #define CONFIG_SF_DEFAULT_BUS 0 #define CONFIG_SF_DEFAULT_CS 0 #define CONFIG_SF_DEFAULT_MODE SPI_MODE_0 +#define CONFIG_SF_DEFAULT_SPEED (48 * 1000 * 1000) #define CONFIG_SPI_FLASH_BAR 1 #define CONFIG_EFI_PARTITION