1. 26 Jun, 2012 1 commit
    • Kevin Hilman's avatar
      ARM: OMAP2+: nand: fix build error when CONFIG_MTD_ONENAND_OMAP2=n · bb44c30e
      Kevin Hilman authored
      commit 8259573b (ARM: OMAP2+: nand: Make board_onenand_init() visible
      to board code) broke the build for configs with OneNAND disabled.  By
      removing the static in the header file, it created a duplicate definition
      in the .c and the .h files, resuling in a build error:
      
      /work/kernel/omap/dev/arch/arm/mach-omap2/board-flash.c:102:111: error: redefinition of 'board_onenand_init'
      /work/kernel/omap/dev/arch/arm/mach-omap2/board-flash.h:56:51: note: previous definition of 'board_onenand_init' was here
      make[2]: *** [arch/arm/mach-omap2/board-flash.o] Error 1
      make[2]: *** Waiting for unfinished jobs....
      make[1]: *** [arch/arm/mach-omap2] Error 2
      make: *** [sub-make] Error 2
      
      Fix this by removing the duplicate dummy entry from the C file.
      
      Cc: Enric Balletbò i Serra <eballetbo@gmail.com>
      Cc: Javier Martinez Canillas <javier@dowhile0.org>
      Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      bb44c30e
  2. 09 May, 2012 1 commit
  3. 24 Feb, 2012 1 commit
    • Tony Lindgren's avatar
      ARM: OMAP2+: Mark omap_hsmmc_init and omap_mux related functions as __init · d1589f09
      Tony Lindgren authored
      Now that omap hsmmc init is split into two functions, it's safe
      to mark omap_hsmmc_init and omap_mux related functions to __init.
      
      This basically reverts the following fixes for the case where
      TWL was compiled as a module:
      
      a98f77bb (ARM: omap: fix section mismatch warning for sdp3430_twl_gpio_setup())
      8930b4e3 (ARM: omap: fix section mismatch warnings in mux.c caused by hsmmc.c)
      
      Additionally it fixes up the remaining section warnings for
      all callers of omap_mux functions.
      
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      d1589f09
  4. 20 Sep, 2011 1 commit
  5. 29 Jun, 2011 1 commit
    • Grazvydas Ignotas's avatar
      omap: cleanup NAND platform data · 7a559c78
      Grazvydas Ignotas authored
      omap_nand_platform_data fields 'options', 'gpio_irq', 'nand_setup' and
      'dma_channel' are never referenced by the NAND driver, yet various
      board files are initializing those fields. This is both incorrect and
      confusing, so remove them. This allows to get rid of a global
      variable in gpmc-nand.c.
      
      This also corrects an issue where some boards are trying to pass NAND
      16bit flag through .options, but the driver is using .devsize instead
      and ignoring .options.
      
      Finally, .dev_ready is treated as a flag by the driver, so make it bool
      instead of a function pointer.
      Signed-off-by: default avatarGrazvydas Ignotas <notasas@gmail.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      7a559c78
  6. 25 Feb, 2011 1 commit
  7. 17 Feb, 2011 5 commits
  8. 08 Oct, 2010 1 commit
    • Manjunath Kondaiah G's avatar
      OMAP2plus: Fix static function warnings · 04aeae77
      Manjunath Kondaiah G authored
      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: default avatarManjunath Kondaiah G <manjugk@ti.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: Nishanth Menon <nm@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      04aeae77
  9. 02 Aug, 2010 2 commits
  10. 23 Apr, 2010 1 commit
  11. 15 Feb, 2010 1 commit
    • Vimal Singh's avatar
      omap3: SDP: Introducing 'board-sdp-flash.c' for flash init · c2798e93
      Vimal Singh authored
      This patch adds 'board-sdp-flash.c', which could be utilized
      by boards similar to 3430SDP. (For ex: 2430sdp, 36030sdp).
      
      This file does initialization for all three flash devices present
      in SDP boards (NOR, NAND, OneNAND), by finding there 'cs' number
      dynamically using switch setting information (S8: 1-4).
      This also expects partition information from core board files (for
      ex: board-3430sdp.c). Which allows to choose different default
      partitions for different boards.
      
      A new structure is created for this purpose: 'flash_partitions'
      in 'mach/board-sdp.h'. This has two members:
      1. struct mtd_partition *parts
      2. int nr_parts
      
      A board file is expected to fill this structure and pass it to
      'sdp-flsash-init'. Partition information should be passed in
      structure array of 'flash_partitions'. Partition information should
      be passed in below sequence in array:
      NOR
      OneNAND
      NAND
      Signed-off-by: default avatarVimal Singh <vimalsingh@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      c2798e93