1. 01 Sep, 2013 38 commits
  2. 31 Aug, 2013 2 commits
    • Axel Lin's avatar
      spi: core: Fix spi_register_master error handling · e93b0724
      Axel Lin authored
      In the case spi_master_initialize_queue() fails, current code calls
      device_unregister() before return error from spi_register_master().
      However, all the drivers call spi_master_put() in the error path if
      spi_register_master() fails. Thus we should call device_del() rather than
      device_unregister() before return error from spi_register_master().
      
      This also makes all the spi_register_master() error handling consistent,
      because all other error paths of spi_register_master() expect drivers to
      call spi_master_put() if spi_register_master() fails.
      Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      e93b0724
    • Axel Lin's avatar
      spi: efm32: Fix build error · d8851a0d
      Axel Lin authored
      Obviously the of_device_id table name is wrong.
      
      Fix below build error:
      
        CC [M]  drivers/spi/spi-efm32.o
      drivers/spi/spi-efm32.c:499:1: error: '__mod_of_device_table' aliased to undefined symbol 'efm32_uart_dt_ids'
      make[2]: *** [drivers/spi/spi-efm32.o] Error 1
      make[1]: *** [drivers/spi] Error 2
      make: *** [drivers] Error 2
      Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
      Signed-off-by: default avatarMark Brown <broonie@linaro.org>
      d8851a0d