1. 07 Jan, 2011 15 commits
    • Felipe Balbi's avatar
      arm: omap: gpio: don't access irq_desc array directly · 1a9b5878
      Felipe Balbi authored
      Instead of accessing the irq_desc array directly
      we can use irq_to_desc(irq). That will allow us to,
      if wanted, select SPARSE_IRQ and irq_descs will be
      added to a radix tree, instead of a array.
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
      1a9b5878
    • Nishanth Menon's avatar
      omap2+: pm_bus: make functions used as pointers as static · b97c374d
      Nishanth Menon authored
      omap_pm_runtime_suspend and omap_pm_runtime_resume are used
      as function pointers and does not really need to be exposed
      to the world.
      
      Fixes sparse warnings:
      arch/arm/mach-omap2/pm_bus.c:23:5: warning: symbol 'omap_pm_runtime_suspend' was not declared. Should it be static?
      arch/arm/mach-omap2/pm_bus.c:40:5: warning: symbol 'omap_pm_runtime_resume' was not declared. Should it be static?
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
      b97c374d
    • Mika Westerberg's avatar
      OMAP: GPIO: fix _set_gpio_triggering() for OMAP2+ · f7c5cc45
      Mika Westerberg authored
      In case on OMAP2+ we call set_24xx_gpio_triggering() instead of
      updating reg and l values. However, at the end of the function we
      perform a write:
      
      	__raw_writel(l, reg);
      
      So on OMAP2+ we end up writing 0 to the bank->base which is not
      correct (typically this points to GPIO_REVISION register).
      
      Fix this by returning immediately after call to
      set_24xx_gpio_triggering().
      Signed-off-by: default avatarMika Westerberg <ext-mika.1.westerberg@nokia.com>
      Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
      f7c5cc45
    • Nishanth Menon's avatar
      OMAP2+: TWL: include pm header for init protos · dda0aea7
      Nishanth Menon authored
      twl_init functions are declared in pm.h and used in pm.c
      pm.h header defining the protos need to be included to
      ensure that omap_twl.c has consistent function definition.
      This fixes sparse warning:
      arch/arm/mach-omap2/omap_twl.c:237:12: warning: symbol 'omap4_twl_init' was not declared. Should it be static?
      arch/arm/mach-omap2/omap_twl.c:256:12: warning: symbol 'omap3_twl_init' was not declared. Should it be static?
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
      dda0aea7
    • Nishanth Menon's avatar
      OMAP2+: TWL: make conversion routines static · c84ff1cc
      Nishanth Menon authored
      The uv_to_vsel, vsel_to_uv functions don't need to be exposed to the
      world as they are used as function pointers. make them static.
      
      Fixes sparse warnings:
      arch/arm/mach-omap2/omap_twl.c:63:15: warning: symbol 'twl4030_vsel_to_uv' was not declared. Should it be static?
      arch/arm/mach-omap2/omap_twl.c:68:4: warning: symbol 'twl4030_uv_to_vsel' was not declared. Should it be static?
      arch/arm/mach-omap2/omap_twl.c:73:15: warning: symbol 'twl6030_vsel_to_uv' was not declared. Should it be static?
      arch/arm/mach-omap2/omap_twl.c:105:4: warning: symbol 'twl6030_uv_to_vsel' was not declared. Should it be static?
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
      c84ff1cc
    • Nishanth Menon's avatar
      OMAP3+: sr_device: include pm header · d0eadf6d
      Nishanth Menon authored
      omap_enable_smartreflex_on_init is meant to be used by boards
      which would like to have SR enabled by default on the platform, while
      omap_devinit_smartreflex is used by pm code, the protos are defined
      in pm.h. This header should be included to ensure that sr_device
      function definitions match the prototypes.
      
      including pm.h fixes the sparse warnings (with CONFIG_OMAP_SMARTREFLEX=y):
      arch/arm/mach-omap2/sr_device.c:138:13: warning: symbol 'omap_enable_smartreflex_on_init' was not declared. Should it be static?
      arch/arm/mach-omap2/sr_device.c:143:12: warning: symbol 'omap_devinit_smartreflex' was not declared. Should it be static?
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
      d0eadf6d
    • Nishanth Menon's avatar
      omap2+: wdt: trivial sparse fixes · a9b365bd
      Nishanth Menon authored
      omap2_wd_timer_disable is declared in wdtimer.h and used by hwmod
      function pointers for usage, the header inclusion is necessary
      to ensure that the prototype and function remains consistent.
      omap_wdt_latency is passed as a pointer and does not need global scope
      
      Fixes sparse warnings:
      arch/arm/mach-omap2/devices.c:981:31: warning: symbol 'omap_wdt_latency' was not declared. Should it be static?
      arch/arm/mach-omap2/wd_timer.c:27:5: warning: symbol 'omap2_wd_timer_disable' was not declared. Should it be static?
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      a9b365bd
    • Nishanth Menon's avatar
      omap3: igep3: make igep3_flash_init static · 2393608a
      Nishanth Menon authored
      igep3_flash_init is not used beyond the scope of the file, make it
      static instead.
      
      Fixes sparse warning:
      arch/arm/mach-omap2/board-igep0030.c:106:13: warning: symbol 'igep3_flash_init' was not declared. Should it be static?
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      2393608a
    • Nishanth Menon's avatar
      omap3: zoom: use static for pointer passing · 0ce3bb72
      Nishanth Menon authored
      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: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      0ce3bb72
    • Nishanth Menon's avatar
      omap3|4: mux: make local structures static · bcb52693
      Nishanth Menon authored
      Mux data is passed by pointers to mux.c from the SoC specific
      mux file, these variables dont really need to be global scope.
      
      This fixes the following sparse warnings:
      arch/arm/mach-omap2/mux44xx.c:547:29: warning: symbol 'omap4_core_cbl_ball' was not declared. Should it be static?
      arch/arm/mach-omap2/mux44xx.c:1265:29: warning: symbol 'omap4_core_cbs_ball' was not declared. Should it be static?
      arch/arm/mach-omap2/mux44xx.c:1549:29: warning: symbol 'omap4_wkup_cbl_cbs_ball' was not declared. Should it be static?
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      bcb52693
    • Aaro Koskinen's avatar
      arm: mach-omap2: mux: fix buffer overrun · 30833142
      Aaro Koskinen authored
      memcpy() copies 8 bytes too much (omap_mux_entry vs. omap_mux). Correct
      by replacing memcpy() with struct assignment, which is safer.
      Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@nokia.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      30833142
    • Catalin Marinas's avatar
      ARM: Do not enable SWP emulation if CPU_V6 && CPU_V7 · e118a1df
      Catalin Marinas authored
      This option uses LDREXB/STREXB to emulate SWPB but these instructions
      are not supported on all the ARMv6 processors.
      Reported-by: default avatarAnand Gadiyar <gadiyar@ti.com>
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Cc: Leif Lindholm <Leif.Lindholm@arm.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      e118a1df
    • Linus Torvalds's avatar
      Merge branch 'omap-for-linus' of... · 01539ba2
      Linus Torvalds authored
      Merge branch 'omap-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6
      
      * 'omap-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6: (243 commits)
        omap2: Make OMAP2PLUS select OMAP_DM_TIMER
        OMAP4: hwmod data: Fix alignment and end of line in structurefields
        OMAP4: hwmod data: Move the DMA structures
        OMAP4: hwmod data: Move the smartreflex structures
        OMAP4: hwmod data: Fix missing SIDLE_SMART_WKUP in smartreflexsysc
        arm: omap: tusb6010: add name for MUSB IRQ
        arm: omap: craneboard: Add USB EHCI support
        omap2+: Initialize serial port for dynamic remuxing for n8x0
        omap2+: Add struct omap_board_data and use it for platform level serial init
        omap2+: Allow hwmod state changes to mux pads based on the state changes
        omap2+: Add support for hwmod specific muxing of devices
        omap2+: Add omap_mux_get_by_name
        OMAP2: PM: fix compile error when !CONFIG_SUSPEND
        MAINTAINERS: OMAP: hwmod: update hwmod code, data maintainership
        OMAP4: Smartreflex framework extensions
        OMAP4: hwmod: Add inital data for smartreflex modules.
        OMAP4: PM: Program correct init voltages for scalable VDDs
        OMAP4: Adding voltage driver support
        OMAP4: Register voltage PMIC parameters with the voltage layer
        OMAP3: PM: Program correct init voltages for VDD1 and VDD2
        ...
      
      Fix up trivial conflict in arch/arm/plat-omap/Kconfig
      01539ba2
    • Linus Torvalds's avatar
      Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 · 9e9bc973
      Linus Torvalds authored
      * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (255 commits)
        [media] radio-aimslab.c: Fix gcc 4.5+ bug
        [media] cx25821: Fix compilation breakage due to BKL dependency
        [media] v4l2-compat-ioctl32: fix compile warning
        [media] zoran: fix compiler warning
        [media] tda18218: fix compile warning
        [media] ngene: fix compile warning
        [media] DVB: IR support for TechnoTrend CT-3650
        [media] cx23885, cimax2.c: Fix case of two CAM insertion irq
        [media] ir-nec-decoder: fix repeat key issue
        [media] staging: se401 depends on USB
        [media] staging: usbvideo/vicam depends on USB
        [media] soc_camera: Add the ability to bind regulators to soc_camedra devices
        [media] V4L2: Add a v4l2-subdev (soc-camera) driver for OmniVision OV2640 sensor
        [media] v4l: soc-camera: switch to .unlocked_ioctl
        [media] v4l: ov772x: simplify pointer dereference
        [media] ov9640: fix OmniVision OV9640 sensor driver's priv data retrieving
        [media] ov9640: use macro to request OmniVision OV9640 sensor private data
        [media] ivtv-i2c: Fix two warnings
        [media] staging/lirc: Update lirc TODO files
        [media] cx88: Remove the obsolete i2c_adapter.id field
        ...
      9e9bc973
    • Linus Torvalds's avatar
      Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm · 3c0cb7c3
      Linus Torvalds authored
      * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (416 commits)
        ARM: DMA: add support for DMA debugging
        ARM: PL011: add DMA burst threshold support for ST variants
        ARM: PL011: Add support for transmit DMA
        ARM: PL011: Ensure IRQs are disabled in UART interrupt handler
        ARM: PL011: Separate hardware FIFO size from TTY FIFO size
        ARM: PL011: Allow better handling of vendor data
        ARM: PL011: Ensure error flags are clear at startup
        ARM: PL011: include revision number in boot-time port printk
        ARM: vexpress: add sched_clock() for Versatile Express
        ARM i.MX53: Make MX53 EVK bootable
        ARM i.MX53: Some bug fix about MX53 MSL code
        ARM: 6607/1: sa1100: Update platform device registration
        ARM: 6606/1: sa1100: Fix platform device registration
        ARM i.MX51: rename IPU irqs
        ARM i.MX51: Add ipu clock support
        ARM: imx/mx27_3ds: Add PMIC support
        ARM: DMA: Replace page_to_dma()/dma_to_page() with pfn_to_dma()/dma_to_pfn()
        mx51: fix usb clock support
        MX51: Add support for usb host 2
        arch/arm/plat-mxc/ehci.c: fix errors/typos
        ...
      3c0cb7c3
  2. 06 Jan, 2011 25 commits