1. 03 Jun, 2013 1 commit
    • Arnd Bergmann's avatar
      spi: sirf: avoid uninitialized-use warning · 804ae438
      Arnd Bergmann authored
      24778be2 "spi: convert drivers to use bits_per_word_mask"
      removed the "default" statement in the spi_sirfsoc_setup_transfer
      switch, causing a new warning:
      
      drivers/spi/spi-sirf.c: In function 'spi_sirfsoc_setup_transfer':
      arch/arm/include/asm/io.h:90:2: warning: 'rxfifo_ctrl' may be used uninitialized in this function [-Wmaybe-uninitialized]
        asm volatile("str %1, %0"
        ^
      drivers/spi/spi-sirf.c:364:19: note: 'rxfifo_ctrl' was declared here
        u32 txfifo_ctrl, rxfifo_ctrl;
                         ^
      
      The compiler has correctly identified that this case may happen,
      but since we know that things are horribly broken if bits_per_word
      is ever something other than the values we tested, calling BUG()
      is an appropriate action and tells the compiler that execution
      will not continue afterwards.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Cc: Mark Brown <broonie@kernel.org>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      804ae438
  2. 01 Jun, 2013 3 commits
  3. 30 May, 2013 1 commit
    • Sachin Kamat's avatar
      spi: spi-imx: Fix compilation error · 6051426f
      Sachin Kamat authored
      Fix compilation error due to a typo introduced by commit 24778be2
      ("spi: convert drivers to use bits_per_word_mask"). Without this patch
      we get the following build errors:
      
      drivers/spi/spi-imx.c: In function ‘spi_imx_setupxfer’:
      drivers/spi/spi-imx.c:703:2: warning: no return statement in function returning non-void [-Wreturn-type]
      drivers/spi/spi-imx.c: At top level:
      drivers/spi/spi-imx.c:705:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘->’ token
      drivers/spi/spi-imx.c:707:2: error: expected identifier or ‘(’ before ‘return’
      drivers/spi/spi-imx.c:708:1: error: expected identifier or ‘(’ before ‘}’ token
      Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
      Cc: Stephen Warren <swarren@wwwdotorg.org>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      6051426f
  4. 29 May, 2013 1 commit
  5. 22 May, 2013 1 commit
  6. 20 May, 2013 10 commits
  7. 19 May, 2013 3 commits
  8. 18 May, 2013 20 commits