1. 01 Feb, 2016 5 commits
    • Arnd Bergmann's avatar
      ARM: EXYNOS: select THERMAL_OF · dc7eb9d5
      Arnd Bergmann authored
      We cannot select a symbol that has disabled dependencies, so
      we get a warning if we ever enable EXYNOS_THERMAL without
      also turning on THERMAL_OF:
      
      warning: (ARCH_EXYNOS) selects EXYNOS_THERMAL which has unmet direct dependencies (THERMAL && (ARCH_EXYNOS || COMPILE_TEST) && THERMAL_OF)
      
      This adds another 'select' in the platform code to avoid that
      case. Alternatively, we could decide to not select EXYNOS_THERMAL
      here and instead make it a user option.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: f87e6bd3 ("thermal: exynos: Add the dependency of CONFIG_THERMAL_OF instead of CONFIG_OF")
      Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
      dc7eb9d5
    • Arnd Bergmann's avatar
      ARM: s3c64xx: mark regulator init data as unused · a113b057
      Arnd Bergmann authored
      The smdk6410 board defines lots of regulator settings, but uses
      most of them only in certain configurations, and otherwise leaves
      them without any references, so we get lots of randconfig warnings
      about them:
      
      mach-s3c64xx/mach-smdk6410.c:303:35: error: 'smdk6410_vddarm' defined but not used [-Werror=unused-variable]
      mach-s3c64xx/mach-smdk6410.c:316:35: error: 'smdk6410_vddint' defined but not used [-Werror=unused-variable]
      mach-s3c64xx/mach-smdk6410.c:327:35: error: 'smdk6410_vddhi' defined but not used [-Werror=unused-variable]
      mach-s3c64xx/mach-smdk6410.c:335:35: error: 'smdk6410_vddpll' defined but not used [-Werror=unused-variable]
      mach-s3c64xx/mach-smdk6410.c:343:35: error: 'smdk6410_vdduh_mmc' defined but not used [-Werror=unused-variable]
      
      This marks all regulator_init_data structures in this file as
      __maybe_unused, indicating that we don't care whether there
      are any references or not in a given configuration.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
      a113b057
    • Arnd Bergmann's avatar
      ARM: s3c24xx: fix unused gta02_configure_pmu_for_charger warning · 8db9a202
      Arnd Bergmann authored
      gta02_configure_pmu_for_charger is only used when CONFIG_PCF50633_ADC
      is set, and otherwise we get a warning about an unused symbol:
      
      arch/arm/mach-s3c24xx/mach-gta02.c:158:1: warning: 'gta02_configure_pmu_for_charger' defined but not used [-Wunused-function]
       gta02_configure_pmu_for_charger(struct pcf50633 *pcf, void *unused, int res)
      
      This adds an #ifdef to shut up the warning.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
      8db9a202
    • Arnd Bergmann's avatar
      ARM: s3c24xx: allow selecting S3C2440_XTAL_16934400 for s3c2442 · 16560854
      Arnd Bergmann authored
      The S3C2440_XTAL_16934400 and S3C2440_XTAL_12000000 symbols are used
      for both s3c2442 and s3c2440, but Kconfig only allows it to be selected
      if CPU_S3C2440 is enabled, which can lead to a warning otherwise:
      
      warning: (MACH_RX1950) selects S3C2440_XTAL_16934400 which has unmet direct dependencies (ARCH_S3C24XX && CPU_S3C2440)
      
      This changes the dependencies to make it possible also for CPU_S3C2442-only
      configurations.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
      16560854
    • Arnd Bergmann's avatar
      ARM: s3c24xx: don't select EEPROM_AT24 · bde491fd
      Arnd Bergmann authored
      EEPROM_AT24 depends on both I2C and SYSFS. We have in the past
      added I2C 'select' statements to avoid build problems with the
      first, but we still get a warning because of the second:
      
      warning: (MACH_DAVINCI_EVM && MACH_SFFSDR && MACH_DAVINCI_DM6467_EVM && MACH_DAVINCI_DM365_EVM && MACH_DAVINCI_DA830_EVM && MACH_MITYOMAPL138 && MACH_MINI2440) selects EEPROM_AT24 which has unmet direct dependencies (I2C && SYSFS)
      
      This removes the 'select' statements again, and forces users to
      enable the driver in their configuration files, as we do for
      most other drivers.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
      bde491fd
  2. 24 Jan, 2016 35 commits