1. 05 Apr, 2023 9 commits
  2. 04 Apr, 2023 8 commits
  3. 31 Mar, 2023 2 commits
  4. 30 Mar, 2023 1 commit
  5. 29 Mar, 2023 1 commit
  6. 28 Mar, 2023 2 commits
  7. 27 Mar, 2023 5 commits
  8. 22 Mar, 2023 3 commits
  9. 20 Mar, 2023 7 commits
  10. 17 Mar, 2023 2 commits
    • Mark Brown's avatar
      spi: atmel-quadspi: Convert to platform remove · 864f0513
      Mark Brown authored
      Merge series from Uwe Kleine-König <u.kleine-koenig@pengutronix.de>:
      
      This series converts the atmel-quadspi driver to use the .remove_new()
      callback that doesn't return an int but void. The motivation is to not
      give driver authors a reason to (wrongly) believe that returning an
      error code was sensible error handling. In fact the spi core only emits
      a warning message in this case and otherwise continues as if the return
      value was zero. This usually yields resource leaks that sometimes can
      lead to exceptions later on.
      
      The atmel-quadspi driver is one of these drivers that got error handling
      wrong, this is fixed here and in the last patch the driver is converted
      to .remove_new() with the eventual goal to change .remove() to return
      void once all drivers are converted this way.
      864f0513
    • Uwe Kleine-König's avatar
      spi: atmel-quadspi: Convert to platform remove callback returning void · 4d70dd0a
      Uwe Kleine-König authored
      The .remove() callback for a platform driver returns an int which makes
      many driver authors wrongly assume it's possible to do error handling by
      returning an error code. However the value returned is (mostly) ignored
      and this typically results in resource leaks. To improve here there is a
      quest to make the remove callback return void. In the first step of this
      quest all drivers are converted to .remove_new() which already returns
      void.
      
      Trivially convert this driver from always returning zero in the remove
      callback to the void returning variant.
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Reviewed-by: default avatarTudor Ambarus <tudor.ambarus@linaro.org>
      Link: https://lore.kernel.org/r/20230317084232.142257-4-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      4d70dd0a