1. 22 Mar, 2014 2 commits
  2. 21 Mar, 2014 38 commits
    • Arnd Bergmann's avatar
      ARM: exynos: add missing include of linux/module.h · 96c3a250
      Arnd Bergmann authored
      After the restructuring of the module.h and init.h headers,
      we now need to include this explicitly here.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      96c3a250
    • Arnd Bergmann's avatar
      ARM: exynos: fix l2x0 saved regs handling · 39378e41
      Arnd Bergmann authored
      The exynos4_l2x0_cache_init function tries to flush the data cache
      for the location of the saved l2x0 registers and pass the physical
      address to the s5p-sleep implementation.
      
      However, the s5p-sleep code is optional, and if it is disabled,
      we get a linker error here when the l2x0_regs_phys variable does
      not exist.
      
      To solve this, use a compile-time conditional to drop this code
      if we don't want it.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      39378e41
    • Arnd Bergmann's avatar
      ARM: samsung: select CRC32 for SAMSUNG_PM_CHECK · 714e3302
      Arnd Bergmann authored
      The Samsung pm_check code uses the crc32 library code, which can
      be built as a loadable module, in which case we get a link error
      building the kernel.
      
      A better solution is to use 'select CRC32', which is what all
      other users of this code do, as it ensures it is always built-in.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      714e3302
    • Arnd Bergmann's avatar
      ARM: samsung: select ATAGS where necessary · 335cce74
      Arnd Bergmann authored
      Most of the Samsung platforms do not yet allow building with
      DT at all, so we should select CONFIG_ATAGS for now in all
      cases we also select CONFIG_SAMSUNG_ATAGS.
      
      Found during randconfig testing.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      335cce74
    • Arnd Bergmann's avatar
      ARM: samsung: fix SAMSUNG_PM_DEBUG Kconfig logic · af960151
      Arnd Bergmann authored
      The suspend debug code for Samsung has multiple dependencies
      that we should not unconditionally enable. In particular,
      we rely on the DEBUG_S3C_UART setting, which in turn depends
      on the samsung UART driver.
      Signed-off-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      af960151
    • Arnd Bergmann's avatar
      ARM: samsung: allow serial driver to be disabled · 0443a653
      Arnd Bergmann authored
      If CONFIG_SERIAL_SAMSUNG is disabled, we run into build errors
      with some samsung platforms. This adds a couple of #ifdef
      statements to hopefully deal with this more gracefully.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      0443a653
    • Arnd Bergmann's avatar
      ARM: s5pv210: enable IDE support in MACH_TORBRECK · 943fa726
      Arnd Bergmann authored
      Building MACH_TORBRECK by itself results in a build error
      because we try to reference the s3c_device_cfcon definition
      that is hidden inside CONFIG_SAMSUNG_DEV_IDE. This changes
      the Kconfig logic to ensure that option is enabled when we
      need it.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      943fa726
    • Arnd Bergmann's avatar
      ARM: s5p64x0: fix building with only one soc type · 4f579c03
      Arnd Bergmann authored
      The s5p64x0 platform supports two distinct SoCs, s5p6440 and s5p6450,
      and in the normal configuration, both are enabled. However if we build
      a kernel that only enables one of the two, the #ifdef logic in common.c
      breaks down, as some of the functions declared in the header are defined
      to NULL using the preprocessor but then defined anyway.
      
      This patch cleans up the mess and ensures that each function has either
      exactly one C declaration and one matching C definition, or we have
      a NULL defined function pointer but no C definition.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      4f579c03
    • Arnd Bergmann's avatar
      ARM: s3c64xx: select power domains only when used · 4ab75a3f
      Arnd Bergmann authored
      The power domain code is only available when CONFIG_PM
      is enabled, so we must not select that unconditionally for
      s3c64xx. Changing it to 'select PM_GENERIC_DOMAINS if PM'
      mirrors what we do on other platforms, and fixes a possible
      randconfig build bug.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      4ab75a3f
    • Arnd Bergmann's avatar
      ARM: s3c64xx: MACH_SMDK6400 needs HSMMC1 · b25a1b64
      Arnd Bergmann authored
      This board uses both MMC controllers, so we need to enable
      the Kconfig option to define the platform data.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      b25a1b64
    • Arnd Bergmann's avatar
      ARM: s3c24xx: osiris dvs needs tps65010 · f88309c6
      Arnd Bergmann authored
      The osiris-dvs driver calls functions exported by the tps65010
      driver, so we have to ensure that driver is enabled first.
      Using 'select' here doesn't work all that well, because it
      requires I2C to be enabled in turn.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      f88309c6
    • Arnd Bergmann's avatar
      ARM: s3c24xx: fix gta02 build error · 645e27b0
      Arnd Bergmann authored
      The gta02 has always been broken in the case when CONFIG_PCF50633_ADC
      is not used, since gta02_charger_worker then passes a nonexisting
      variable into the pcf50633_mbc_usb_curlim_set() function.
      
      This addresses the obvious typo by using the variable that is
      used everywhere else in this file.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      645e27b0
    • Arnd Bergmann's avatar
      ARM: s3c24xx: MINI2440 needs I2C for EEPROM_AT24 · 37373f16
      Arnd Bergmann authored
      If I2C is disabled, we cannot build the AT24 driver, so we
      should not select it.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarKukjin Kim <kgene.kim@samsung.com>
      Cc: Tomasz Figa <tomasz.figa@gmail.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      37373f16
    • Arnd Bergmann's avatar
      ARM: integrator: only select pl01x if TTY is enabled · 152c5555
      Arnd Bergmann authored
      Building the integrator platform without TTY support currently
      results in a build failure because we always turn on the
      pl010 or pl011 drivers. Changing this to a conditional 'select'
      statement enables us to build more random configurations, although
      it should have little impact for practical configurations.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      152c5555
    • Arnd Bergmann's avatar
      ARM: realview: fix sparsemem build · dd94d355
      Arnd Bergmann authored
      Commit b713aa0b "ARM: fix asm/memory.h build error" broke some
      configurations on mach-realview with sparsemem enabled, which
      is missing a definition of PHYS_OFFSET:
      
      arch/arm/include/asm/memory.h:268:42: error: 'PHYS_OFFSET' undeclared (first use in this function)
       #define PHYS_PFN_OFFSET ((unsigned long)(PHYS_OFFSET >> PAGE_SHIFT))
      arch/arm/include/asm/dma-mapping.h:104:9: note: in expansion of macro 'PHYS_PFN_OFFSET'
        return PHYS_PFN_OFFSET + dma_to_pfn(dev, *dev->dma_mask);
      
      An easy workaround is for realview to define PHYS_OFFSET itself,
      in the same way we define it for platforms that don't have a private
      __virt_to_phys function.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      dd94d355
    • Arnd Bergmann's avatar
      ARM: footbridge: make screen_info setup conditional · 617d1464
      Arnd Bergmann authored
      The global screen_info structure is used to communicate
      data about the console from platform code to the console
      driver, but is only defined on ARM if either the VGA or
      dummy consoles are in use.
      
      This changes the footbridge code so we don't try to access
      this structure in case it is not defined, which prevents
      a possible randconfig build error.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Russell King <linux@arm.linux.org.uk>
      617d1464
    • Arnd Bergmann's avatar
      ARM: footbridge: fix build with PCI disabled · 570977a1
      Arnd Bergmann authored
      The dc21285.c source file cannot be built when CONFIG_PCI is
      disabled, because it calls a number of PCI core interfaces.
      
      This changes the Makefile so we don't include this file in the
      build if CONFIG_PCI is disabled. No other code references anything
      defined inside of this file in this case.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Russell King <linux@arm.linux.org.uk>
      570977a1
    • Arnd Bergmann's avatar
      ARM: footbridge: don't build floppy code for addin mode · ad9faf4c
      Arnd Bergmann authored
      The ARCH_EBSA285_ADDIN platform does not provide the
      ISA_DMA API, which is required by the floppy driver.
      
      Let's ensure that the floppy code can only be built
      when ISA_DMA is also enabled, by moving the select
      statement into ARCH_EBSA285_HOST.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Russell King <linux@arm.linux.org.uk>
      ad9faf4c
    • Arnd Bergmann's avatar
      ARM: rpc: autoselect CPU_SA110 · fa04e209
      Arnd Bergmann authored
      ARCH_RPC no longer supports other CPUs aside from StrongARM110,
      so we can make the option implicitly selected by the platform
      and no longer give the option of building a kernel without CPU
      support.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Russell King <linux@arm.linux.org.uk>
      fa04e209
    • Arnd Bergmann's avatar
      ARM: pxa: trizeps4 and trizeps4wl use the same file · edd4c720
      Arnd Bergmann authored
      The trizeps4 and trizeps4wl platforms are both implemented
      using the same board file. Since the trizeps4wl code is a
      superset of trizeps4, it makes no sense to enable just the
      latter, but with the current Kconfig logic, it causes the
      board file not to be built at all.
      
      Selecting MACH_TRIZEPS4 from MACH_TRIZEPS4WL ensures that
      we are actually building the board file.
      
      Found during randconfig testing.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Eric Miao <eric.y.miao@gmail.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
      Cc: Daniel Mack <zonque@gmail.com>
      edd4c720
    • Arnd Bergmann's avatar
      ARM: pxa: select I2C_GPIO only if I2C is on · c7dc7d49
      Arnd Bergmann authored
      The Arcom/Eurotech VIPER SBC enables the I2C_GPIO driver, but
      that has a dependency on I2C, and causes build failures if I2C
      is disabled. To keep existing configurations running while fixing
      the randconfig problems, this changes the logic to only enable
      I2C_GPIO if I2C is already enabled.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarHaojian Zhuang <haojian.zhuang@gmail.com>
      Cc: Eric Miao <eric.y.miao@gmail.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Daniel Mack <zonque@gmail.com>
      c7dc7d49
    • Arnd Bergmann's avatar
      ARM: pxa: remove broken balloon3_gpio_vbus reference · 419606ec
      Arnd Bergmann authored
      balloon3_udc_init() tries to register a balloon3_gpio_vbus
      device, but this has never been defined in the mainline
      kernel. To avoid the obvious build failure when this function
      is enabled, remove the bogus reference here.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Eric Miao <eric.y.miao@gmail.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
      Cc: Daniel Mack <zonque@gmail.com>
      419606ec
    • Arnd Bergmann's avatar
      ARM: pxa: fix pxa_ssp_* declarations · 1ced9a5b
      Arnd Bergmann authored
      The functions declared in include/linux/pxa2xx_ssp.h are
      defined in plat-pxa/ssp.c, which can also be built for
      PLAT_MMP, but may be disabled there. This can lead to
      both unresolved symbols at link time and to duplicate
      symbols at compile time for random configurations.
      
      Changing the #ifdef in the header file to match the
      Kconfig symbol that decides if the file is built solves
      both problems.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Eric Miao <eric.y.miao@gmail.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
      Cc: Daniel Mack <zonque@gmail.com>
      1ced9a5b
    • Arnd Bergmann's avatar
      ARM: pxa: fix colibri build · 847e3496
      Arnd Bergmann authored
      The colibri_ohci_init function performs a register access through
      the io_p2v() macro, which requires the IOMEM macro to be defined.
      
      By explicitly including the asm/io.h header file that contains
      this macro, we avoid the build error:
      
      arch/arm/mach-pxa/colibri-evalboard.c: In function 'colibri_ohci_init':
      arch/arm/mach-pxa/colibri-evalboard.c:68:2: error: implicit declaration of function 'IOMEM' [-Werror=implicit-function-declaration]
        UP2OCR = UP2OCR_HXS | UP2OCR_HXOE | UP2OCR_DPPDE | UP2OCR_DMPDE;
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Eric Miao <eric.y.miao@gmail.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
      Cc: Daniel Mack <zonque@gmail.com>
      847e3496
    • Arnd Bergmann's avatar
      ARM: pxa: enable pxafb unconditionally for some boards · e914f19f
      Arnd Bergmann authored
      The SAAR and TAVOREVB machines try to call functions from
      the PXAFB frame buffer driver from their platform code,
      which only works if that driver is built-in.
      
      This patch ensures that both the generic frame buffer
      code and the specific pxafb driver are always enabled
      when we build a kernel for one of the two boards.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Eric Miao <eric.y.miao@gmail.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
      Cc: Daniel Mack <zonque@gmail.com>
      e914f19f
    • Arnd Bergmann's avatar
      ARM: pxa: don't "select" SMC91X on MACH_XCEP · a0ad0fdb
      Arnd Bergmann authored
      We normally don't hard-enable Kconfig options just because
      a board contains a specific piece of hardware. In this case,
      selecting SMC91X causes a build error, if we don't also enable
      basic network device driver support.
      
      Since the platform has no direct dependency on this driver
      at link time, we can just remove the 'select' statement.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Eric Miao <eric.y.miao@gmail.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
      Cc: Daniel Mack <zonque@gmail.com>
      a0ad0fdb
    • Arnd Bergmann's avatar
      ARM: orion5x: make dns323 independent of PHY support · 32ff4971
      Arnd Bergmann authored
      The D-Link DNS-323 machine tries to unconditionally select CONFIG_PHYLIB,
      but that has other dependencies that might not necessarily be enabled,
      causing random build errors.
      
      To work around this, this patch removes the 'select' statement and
      instead uses a compile-time check to skip the phy_register_fixup_for_uid()
      call if PHYLIB is not available in the kernel.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarJason Cooper <jason@lakedaemon.net>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Gregory Clement <gregory.clement@free-electrons.com>
      Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
      32ff4971
    • Arnd Bergmann's avatar
      ARM: mvebu: add missing header · 9e128041
      Arnd Bergmann authored
      The definition for SIGBUS may not be visible without including
      linux/signal.h, as I found during randconfig testing.
      
      Adding an explicit include is certainly the right thing to do.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarJason Cooper <jason@lakedaemon.net>
      Acked-by: default avatarGregory Clement <gregory.clement@free-electrons.com>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
      9e128041
    • Arnd Bergmann's avatar
      ARM: omap1: don't rely on tps65010 · 0b31c53b
      Arnd Bergmann authored
      The code for h2 and osk implicitly assumes that the tps65010
      driver is built-in, in order to perform the initial regulator
      setup.
      
      This is fine for most real uses, but it does get into the way
      of build testing with 'make randconfig', since we don't want
      platforms to implicitly select device drivers and subsystems
      such as I2C.
      
      This patch by contrast changes the board files to not call
      into the tps65010 driver when that is not built-in, allowing
      us to build all configurations including some that will not
      work properly on this hardware.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarTony Lindgren <tony@atomide.com>
      0b31c53b
    • Felipe Balbi's avatar
      ARM: omap1: fix build when !CONFIG_OMAP_32K_TIMER · 84bef117
      Felipe Balbi authored
      If CONFIG_OMAP_32K_TIMER isn't enabled, we will
      try to use enable_dyn_sleep which wasn't defined
      anywhere.
      
      In order to fix the problem, we always define
      enable_dyn_sleep as 0 when !CONFIG_OMAP_32K_TIMER.
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      Acked-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      84bef117
    • Arnd Bergmann's avatar
      ARM: msm: export legacy DMA interfaces · b25a7912
      Arnd Bergmann authored
      The msm_sdcc MMC driver and the msm_serial_hs uart driver both
      use the pre-dmaengine interfaces provided by the MSM platform.
      
      Since these drivers can be loadable modules, we should export
      the functions used in the drivers.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarDavid Brown <davidb@codeaurora.org>
      Cc: Daniel Walker <dwalker@fifo99.com>
      Cc: Bryan Huntsman <bryanh@codeaurora.org>
      b25a7912
    • Arnd Bergmann's avatar
      ARM: msm: avoid calling debug_ll_addr on !MMU · d967b010
      Arnd Bergmann authored
      MSM7X00A has an open-coded version of debug_ll_io_init so it
      can use MT_DEVICE_NONSHARED as required by the platform.
      
      However, this fails to build on no-MMU kernels because the
      debug_ll_addr function is not available. Since the iotable_init
      function doesn't actually do anyting in this configuration,
      we can simply get away by enclosing the broken function call
      in an #ifdef, which seems to be the least ugly workaround.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarDavid Brown <davidb@codeaurora.org>
      Cc: Daniel Walker <dwalker@fifo99.com>
      Cc: Bryan Huntsman <bryanh@codeaurora.org>
      d967b010
    • Arnd Bergmann's avatar
      ARM: msm: add missing include of linux/module.h · 404ed596
      Arnd Bergmann authored
      After the restructuring of the module.h and init.h headers,
      we now need to include this explicitly here.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarDavid Brown <davidb@codeaurora.org>
      Cc: Daniel Walker <dwalker@fifo99.com>
      Cc: Bryan Huntsman <bryanh@codeaurora.org>
      404ed596
    • Arnd Bergmann's avatar
      ARM: lpc32xx: export lpc32xx_return_iram_size · 22833d55
      Arnd Bergmann authored
      This symbol is used by the lpc_eth driver, which may
      be a loadable module.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarRoland Stigge <stigge@antcom.de>
      22833d55
    • Arnd Bergmann's avatar
      ARM: ks8695/og: make PCI setup conditional · de94abfa
      Arnd Bergmann authored
      The 'og' machine tries to always initialized the PCI code, but that
      may be disabled in Kconfig, leading to a build error.
      
      This patch changes the code to use the same Kconfig symbol to decide
      about calling the ks8695_init_pci function at build time that we
      use to decide about building the ks8695 PCI support.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarGreg Ungerer <gerg@uclinux.org>
      de94abfa
    • Arnd Bergmann's avatar
      ARM: ixp4xx: fix gpio rework · 48ba81f6
      Arnd Bergmann authored
      Commit 098e30f6 "ARM: ixp4xx: stop broadcasting the custom GPIO API"
      changed the internal gpio code of ixp4xx to be accessible only from
      common.c, but unfortunately that broke the Goramo MultiLink code, which
      uses this API.
      
      This tries to restore the previous state without exposing the
      API globally again. A better solution might be needed.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Krzysztof Halasa <khc@pm.waw.pl>
      Cc: Imre Kaloz <kaloz@openwrt.org>
      48ba81f6
    • Arnd Bergmann's avatar
      ARM: ixp4xx: avoid use of PCIBIOS_MIN_MEM in io.h · 926aabde
      Arnd Bergmann authored
      When using CONFIG_IXP4XX_INDIRECT_PCI, we run into a recursive
      header file dependency between mach/io.h and asm/pci.h, resulting
      in a build failure:
      
      mach-ixp4xx/include/mach/io.h: In function 'is_pci_memory':
      mach-ixp4xx/include/mach/io.h:53:18: error: 'PCIBIOS_MIN_MEM' undeclared (first use in this function)
        return (addr >= PCIBIOS_MIN_MEM) && (addr <= 0x4FFFFFFF);
                        ^
      mach-ixp4xx/include/mach/io.h:53:18: note: each undeclared identifier is reported only once for each function it appears in
      
      We can work around this by referencing the pcibios_min_mem variable
      directly through an extern declaration, rather than using the macro.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Imre Kaloz <kaloz@openwrt.org>
      Cc: Krzysztof Halasa <khc@pm.waw.pl>
      926aabde
    • Arnd Bergmann's avatar
      ARM: ixp4xx/omixp: always include linux/leds.h · e9c610a4
      Arnd Bergmann authored
      The omixp board code unconditionally defines a gpio-led
      device, but for some reason includes the header file
      for this only if CONFIG_LEDS_CLASS is enabled, causing
      a build error otherwise.
      
      Removing the #ifdef fixes the build error with no downsides
      whatsoever.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Imre Kaloz <kaloz@openwrt.org>
      Cc: Krzysztof Halasa <khc@pm.waw.pl>
      e9c610a4