zephyr/drivers/spi
Kumar Gala b4a3880a75 drivers: remove unnecessary use of DEVICE_AND_API_INIT
For drivers that support CONFIG_DEVICE_POWER_MANAGEMENT there are some
cases that look like:

  #ifdef CONFIG_DEVICE_POWER_MANAGEMENT
    DEVICE_DEFINE()
  #else
    DEVICE_AND_API_INIT()
  #endif

There is no need to special case this as the pm_control_fn argument to
DEVICE_DEFINE will just be ignored in the
!CONFIG_DEVICE_POWER_MANAGEMENT case.  So we can cleanup the code a
little and remove the #else cases for the drivers that do this.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-11-06 09:42:47 -06:00
..
CMakeLists.txt
Kconfig
Kconfig.cc13xx_cc26xx
Kconfig.dw
Kconfig.gecko
Kconfig.litex
Kconfig.mcux_dspi
Kconfig.mcux_flexcomm
Kconfig.mcux_lpspi
Kconfig.nrfx
Kconfig.oc_simple
Kconfig.rv32m1_lpspi
Kconfig.sam
Kconfig.sam0
Kconfig.sifive
Kconfig.spi_emul
Kconfig.stm32
Kconfig.xec_qmspi
Kconfig.xlnx
spi_cc13xx_cc26xx.c
spi_context.h
spi_dw_regs.h
spi_dw.c
spi_dw.h
spi_emul.c
spi_gecko.c
spi_handlers.c
spi_litespi.c
spi_litespi.h
spi_ll_stm32.c
spi_ll_stm32.h
spi_mcux_dspi.c
spi_mcux_flexcomm.c
spi_mcux_lpspi.c
spi_nrfx_spi.c
spi_nrfx_spim.c
spi_nrfx_spis.c
spi_oc_simple.c
spi_oc_simple.h
spi_rv32m1_lpspi.c
spi_sam.c
spi_sam0.c
spi_sifive.c
spi_sifive.h
spi_xec_qmspi.c
spi_xlnx_axi_quadspi.c