ARM: SPRD: fix build warnings for sc8830
[profile/mobile/platform/kernel/u-boot-tm1.git] / arch / arm / cpu / armv7 / sc8830 / mfp_sprd.c
index ac080b9..51d8617 100644 (file)
@@ -41,6 +41,7 @@ const static unsigned long pin_gpio_map[MFP_PIN_MAX] = {
 unsigned long mfp_to_gpio(int pin)
 {
        BUG_ON(1);
+       return 0;
 }
 
 static  int __mfp_validate(unsigned long c)
@@ -108,8 +109,6 @@ static int __mfp_config_pin(unsigned long c)
        return 0;
 }
 
-static unsigned long spi_cs1_gpio_cfg = MFP_CFG_X(SPI_CSN0, GPIO, DS1, F_PULL_NONE, S_PULL_DOWN, IO_NONE);
-
 void sprd_mfp_config(unsigned long *mfp_cfgs, int num)
 {
        unsigned long *c;