1. 13 2月, 2012 1 次提交
    • R
      ARM: omap: resolve nebulous 'Error setting wl12xx data' · 70d669de
      Russell King 提交于
      It's useful to print the error code when a called function fails so a
      diagnosis of why it failed is possible.  In this case, it fails because
      we try to register some data for the wl12xx driver, but as the driver
      is not configured, a stub function is used which simply returns -ENOSYS.
      
      Let's do the simple thing for -rc and print the error code.
      
      Also, the return code from platform_register_device() at each of these
      sites was not being checked.  Add some checking, and again print the
      error code.
      
      This should be fixed properly for the next merge window so we don't
      issue error messages merely because a driver is not configured.
      Acked-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      70d669de
  2. 18 11月, 2011 1 次提交
  3. 04 7月, 2011 3 次提交
  4. 14 6月, 2011 2 次提交
  5. 12 5月, 2011 1 次提交
  6. 09 5月, 2011 1 次提交
  7. 03 5月, 2011 1 次提交
  8. 11 3月, 2011 2 次提交
  9. 03 3月, 2011 1 次提交
  10. 02 3月, 2011 1 次提交
  11. 10 1月, 2011 1 次提交
  12. 07 1月, 2011 1 次提交
    • N
      omap3: zoom: use static for pointer passing · 0ce3bb72
      Nishanth Menon 提交于
      omap_zoom_wlan_data and zoom2_set_hs_extmute are not used beyond
      the scope of zoom-peripherals directly, instead pointers are used.
      make them static instead.
      
      Fixes sparse warnings:
      arch/arm/mach-omap2/board-zoom-peripherals.c:193:29: warning: symbol 'omap_zoom_wlan_data' was not declared. Should it be static?
      arch/arm/mach-omap2/board-zoom-peripherals.c:245:6: warning: symbol 'zoom2_set_hs_extmute' was not declared. Should it be static?
      Signed-off-by: NNishanth Menon <nm@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      0ce3bb72
  13. 18 12月, 2010 1 次提交
    • B
      omap: kill all section mismatch warning for omap2plus_defconfig · 1a6b5923
      Bryan Wu 提交于
      This patch will kill following section mismatch warnings:
      
      WARNING: vmlinux.o(.text+0x24a00): Section mismatch in reference from the function zoom_twl_gpio_setup() to the (unknown reference) .init.data:(unknown)
      The function zoom_twl_gpio_setup() references
      the (unknown reference) __initdata (unknown).
      This is often because zoom_twl_gpio_setup lacks a __initdata
      annotation or the annotation of (unknown) is wrong.
      
      WARNING: vmlinux.o(.text+0x24bfc): Section mismatch in reference from the function cm_t35_twl_gpio_setup() to the (unknown reference) .init.data:(unknown)
      The function cm_t35_twl_gpio_setup() references
      the (unknown reference) __initdata (unknown).
      This is often because cm_t35_twl_gpio_setup lacks a __initdata
      annotation or the annotation of (unknown) is wrong.
      
      WARNING: vmlinux.o(.data+0x1d3e0): Section mismatch in reference from the variable h4_config to the (unknown reference) .init.data:(unknown)
      The variable h4_config references
      the (unknown reference) __initdata (unknown)
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      WARNING: vmlinux.o(.data+0x1dc08): Section mismatch in reference from the variable sdp2430_config to the (unknown reference) .init.data:(unknown)
      The variable sdp2430_config references
      the (unknown reference) __initdata (unknown)
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      WARNING: vmlinux.o(.data+0x1e1d8): Section mismatch in reference from the variable apollon_config to the (unknown reference) .init.data:(unknown)
      The variable apollon_config references
      the (unknown reference) __initdata (unknown)
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      Signed-off-by: NBryan Wu <bryan.wu@canonical.com>
      Cc: Paul Walmsley <paul@pwsan.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      1a6b5923
  14. 07 12月, 2010 1 次提交
  15. 09 10月, 2010 2 次提交
    • M
      OMAP3: Keypad: Fix incorrect type initializer · bead4375
      Manjunath Kondaiah G 提交于
      The keypad matrix variable declaration is not matching
      with structure variable keymap declared in keypad_matrix.h.
      
      Due to this, following sparse warnings are generated with omap3_defconfig.
      
      arch/arm/mach-omap2/board-devkit8000.c:223:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-devkit8000.c:223:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-devkit8000.c:223:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-ldp.c:107:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-ldp.c:107:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-ldp.c:107:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-omap3evm.c:472:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-omap3evm.c:472:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-omap3evm.c:472:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-3430sdp.c:114:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-3430sdp.c:114:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-3430sdp.c:114:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-rx51-peripherals.c:248:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-rx51-peripherals.c:248:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-rx51-peripherals.c:248:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-zoom-peripherals.c:88:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-zoom-peripherals.c:88:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-zoom-peripherals.c:88:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-cm-t35.c:568:14: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-cm-t35.c:568:14:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-cm-t35.c:568:14:    got int static [toplevel] *<noident>
      
      arch/arm/mach-omap2/board-omap3stalker.c:415:13: warning: incorrect type in initializer (different signedness)
      arch/arm/mach-omap2/board-omap3stalker.c:415:13:    expected unsigned int const [usertype] *keymap
      arch/arm/mach-omap2/board-omap3stalker.c:415:13:    got int static [toplevel] *<noident>
      
      This patch modifies the variable keymap declaration as per declaration in matrix_keymap structure.
      Signed-off-by: NManjunath Kondaiah G <manjugk@ti.com>
      Cc: linux-input@vger.kernel.org
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: Nishanth Menon <nm@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      bead4375
    • M
      OMAP2plus: Fix static function warnings · 04aeae77
      Manjunath Kondaiah G 提交于
      This patch fixes sparse warnings due non declarations of static functions.
      
      arch/arm/mach-omap2/timer-gp.c:115:12: warning: symbol 'omap2_gp_clockevent_set_gptimer' was not declared. Should it be static?
      arch/arm/mach-omap2/powerdomain.c:993:5: warning: symbol 'pwrdm_set_lowpwrstchange' was not declared. Should it be static?
      arch/arm/mach-omap2/board-flash.c:141:8: warning: symbol 'board_nand_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-n8x0.c:416:6: warning: symbol 'n8x0_mmc_slot1_cover_handler' was not declared. Should it be static?
      arch/arm/mach-omap2/board-n8x0.c:544:13: warning: symbol 'n8x0_mmc_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-rx51-peripherals.c:902:13: warning: symbol 'rx51_peripherals_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-rx51-video.c:107:13: warning: symbol 'rx51_video_mem_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-zoom-debugboard.c:155:12: warning: symbol 'zoom_debugboard_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-zoom-peripherals.c:280:13: warning: symbol 'zoom_peripherals_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-igep0020.c:110:13: warning: symbol 'igep2_flash_init' was not declared. Should it be static?
      arch/arm/mach-omap2/board-am3517evm.c:109:6: warning: symbol 'am3517_evm_ethernet_init' was not declared. Should it be static?
      drivers/mtd/onenand/omap2.c:577:5: warning: symbol 'omap2_onenand_rephase' was not declared. Should it be static?
      Signed-off-by: NManjunath Kondaiah G <manjugk@ti.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: Nishanth Menon <nm@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      04aeae77
  16. 05 10月, 2010 1 次提交
    • E
      omap: zoom2/3: fix build caused by wl1271 support · 4b48e687
      ext Anand Gadiyar 提交于
      Patch "omap: zoom: add mmc3/wl1271 device support" in the
      wireless tree still uses .wires in struct omap2_hsmmc_info.
      .wires has now been replaced with .caps in patch "omap: mmc:
      extended to pass host capabilities from board file" in the
      OMAP tree.
      
      This causes linux-next as of 20101001 build to break as
      below. Fix this.
      
        CC      arch/arm/mach-omap2/board-zoom-peripherals.o
      arch/arm/mach-omap2/board-zoom-peripherals.c:217: error: unknown field 'wires' specified in initializer
      make[1]: *** [arch/arm/mach-omap2/board-zoom-peripherals.o] Error 1
      make: *** [arch/arm/mach-omap2] Error 2
      Signed-off-by: NAnand Gadiyar <gadiyar@ti.com>
      Cc: Ohad Ben-Cohen <ohad@wizery.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Signed-off-by: NLuciano Coelho <luciano.coelho@nokia.com>
      4b48e687
  17. 30 9月, 2010 1 次提交
  18. 28 9月, 2010 1 次提交
  19. 25 9月, 2010 1 次提交
  20. 21 9月, 2010 2 次提交
  21. 16 3月, 2010 1 次提交
  22. 13 3月, 2010 1 次提交
  23. 20 2月, 2010 1 次提交
    • M
      omap: musb: Pass board specific data from board file · 884b8369
      Maulik Mankad 提交于
      Pass board specific data for MUSB (like interface_type,
      mode etc) from board file by defining board
      specific structure.
      
      Each board file can define this structure based on
      its requirement and pass this information to the
      driver.
      Signed-off-by: NMaulik Mankad <x0082077@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Felipe Balbi <felipe.balbi@nokia.com>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: Gupta Ajay Kumar <ajay.gupta@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      884b8369
  24. 16 2月, 2010 3 次提交
  25. 04 2月, 2010 1 次提交
  26. 09 1月, 2010 1 次提交
  27. 17 12月, 2009 1 次提交
  28. 12 12月, 2009 2 次提交
  29. 23 11月, 2009 3 次提交
    • V
      omap3: zoom: Drop i2c-1 speed to 2400 · 6b61a83b
      vikram pandita 提交于
      The I2C-1 bus frequency on zoom2/zoom3/sdp3630 should be 2.4 MHz.
      The speed is limited by TWL5030/GAIA; a higher speed could lead to errors
      on the interface.
      
      The maximum I2C speed depends on the system clock for GAIA:
      2.2 MHz (sys-clk = 19.2 MHz)
      2.4 MHz (sys-clk = 26 MHz)
      2.9 MHz (sys-clk = 38.4 MHz)
      
      For Zoom2/Zoom3/SDP3630 the system clock is 26Mhz
      and hence choose 2.4Mhz for I2C1 bus speed
      Signed-off-by: NVikram Pandita <vikram.pandita@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      6b61a83b
    • V
      omap3: zoom: rename zoom2 name to generic zoom · 62d0b336
      vikram pandita 提交于
      Replace zoom2 with zoom name in board-zoom-peripherals.c file
      and board-zoom-debugboard.c. Create mach/board-zoom.h.
      
      This file has functions reused for boards: Zoom2/Zoom3/sdp3630.
      Hence have all functions commonly named as zoom
      Signed-off-by: NVikram Pandita <vikram.pandita@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      62d0b336
    • V
      omap3: zoom: split board file for software reuse · 479f12c9
      vikram pandita 提交于
      Split zoom2 board file into a base board file and a board-zoom-peripherals.c
      file. That way the same peripherals file can be reused for zoom3 and sdp3630
      in addition to zoom2.
      
      Also remove unused struct omap_board_config_kernel entry.
      
      NOTE: Keep the twl4030_madc_platform_data and twl4030_platform_data
      entries in board-zoom2.c to avoid merge conflicts with the pending
      patches in MFD tree. These entries will be removed later as a fix.
      
      Following list shows the commonality across the three platforms and hence the
      case for software reuse:
      
      Peripheral    zoom2    zoom3  sdp3630
      ---------------------------------------
      Ethernet        smsc    smsc    smc
      NOR             n/a     n/a     B
      Onenand         n/a     n/a     B
      HDMI            A       A       B (present on different i2c)
      NAND            A       A       A (same nand)
      SDRAM           A       A       A (same sdram)
      Keypad          A       A       A (same twl)
      Camera          A       A       A (same sensor can be mounted)
      LCD Display     A       A       A (same wvga display)
      OPPs            A       A       A (same chip feature)
      Audio           A       A       A (same audio via twl5030)
      Signed-off-by: NVikram Pandita <vikram.pandita@ti.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      479f12c9