1. 15 2月, 2013 1 次提交
  2. 29 11月, 2012 3 次提交
  3. 05 11月, 2012 1 次提交
    • A
      gpio: em: Fix build errors · 16310819
      Axel Lin 提交于
      Fix below build errors:
      
        CC [M]  drivers/gpio/gpio-em.o
      drivers/gpio/gpio-em.c: In function 'em_gio_probe':
      drivers/gpio/gpio-em.c:306: error: 'err' undeclared (first use in this function)
      drivers/gpio/gpio-em.c:306: error: (Each undeclared identifier is reported only once
      drivers/gpio/gpio-em.c:306: error: for each function it appears in.)
      drivers/gpio/gpio-em.c:308: error: label 'err3' used but not defined
      drivers/gpio/gpio-em.c:279: error: label 'err2' used but not defined
      drivers/gpio/gpio-em.c:265: error: label 'err1' used but not defined
      drivers/gpio/gpio-em.c:250: error: label 'err0' used but not defined
      drivers/gpio/gpio-em.c:309: warning: no return statement in function returning non-void
      drivers/gpio/gpio-em.c: At top level:
      drivers/gpio/gpio-em.c:311: error: expected identifier or '(' before 'if'
      drivers/gpio/gpio-em.c:317: error: expected identifier or '(' before 'if'
      drivers/gpio/gpio-em.c:323: warning: data definition has no type or storage class
      drivers/gpio/gpio-em.c:323: warning: type defaults to 'int' in declaration of 'ret'
      drivers/gpio/gpio-em.c:323: error: 'gpio_chip' undeclared here (not in a function)
      drivers/gpio/gpio-em.c:323: error: initializer element is not constant
      drivers/gpio/gpio-em.c:324: error: expected identifier or '(' before 'if'
      drivers/gpio/gpio-em.c:328: error: expected identifier or '(' before 'return'
      drivers/gpio/gpio-em.c:330: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:332: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:334: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:336: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:338: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:340: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:342: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
      drivers/gpio/gpio-em.c:344: error: expected identifier or '(' before '}' token
      drivers/gpio/gpio-em.c: In function 'em_gio_remove':
      drivers/gpio/gpio-em.c:361: error: implicit declaration of function 'em_gio_irq_domain_cleanup'
      make[2]: *** [drivers/gpio/gpio-em.o] Error 1
      make[1]: *** [drivers/gpio] Error 2
      make: *** [drivers] Error 2
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      16310819
  4. 26 10月, 2012 1 次提交
    • L
      gpio/em: convert to linear IRQ domain · 7385500a
      Linus Walleij 提交于
      The code in the em driver seems to want to try to do the job of
      the linear IRQ domain (allocate descriptors and grab a virtual
      range). So why not just use the linear IRQ domain? The code is
      now cut down so we don't need isolated functions for this.
      
      Also note that we use irq_create_mapping() to make sure
      descriptors are allocated for these IRQs.
      
      Also fixed the FIXME to remove the domain after use.
      
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Magnus Damm <damm@opensource.se>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      7385500a
  5. 06 9月, 2012 1 次提交
  6. 01 9月, 2012 1 次提交
  7. 10 8月, 2012 1 次提交
    • A
      gpio: em: do not discard em_gio_irq_domain_cleanup · 38eaed32
      Arnd Bergmann 提交于
      The newly added gpio-em driver marks its em_gio_irq_domain_cleanup
      function as __devexit, which would lead to that function being
      discarded in case CONFIG_HOTPLUG is disabled. However, the function
      is also called by the error handling logic em_gio_probe, which
      would cause a jump into a NULL pointer if it was removed from the
      kernel or module.
      
      Without this patch, building kzm9d_defconfig results in:
      
      WARNING: drivers/gpio/built-in.o(.devinit.text+0x330): Section mismatch in reference from the function em_gio_probe() to the function .devexit.text:em_gio_irq_domain_cleanup()
      The function __devinit em_gio_probe() references
      a function __devexit em_gio_irq_domain_cleanup().
      This is often seen when error handling in the init function
      uses functionality in the exit path.
      The fix is often to remove the __devexit annotation of
      em_gio_irq_domain_cleanup() so it may be used outside an exit section.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Magnus Damm <damm@opensource.se>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Rafael J. Wysocki <rjw@sisk.pl>
      38eaed32
  8. 18 5月, 2012 1 次提交
    • M
      gpio: Emma Mobile GPIO driver V2 · a07e103e
      Magnus Damm 提交于
      This patch is V2 of the Emma Mobile GPIO driver. This
      driver is designed to be reusable between multiple SoCs
      that share the same basic building block, but so far it
      has only been used on Emma Mobile EV2.
      
      Each driver instance handles 32 GPIOs with individually
      maskable IRQs. The driver operates on two I/O memory
      ranges and the 32 GPIOs are hooked up to two interrupts.
      
      In the case of Emma Mobile EV2 this GPIO building block
      is used as main external interrupt controller hooking up
      159 GPIOS as 159 interrupts via 5 driver instances and
      10 interrupts to the GIC and the Cortex-A9 Dual.
      Signed-off-by: NMagnus Damm <damm@opensource.se>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      a07e103e