Skip to content
Snippets Groups Projects
Commit ebe76a2d authored by Simon Glass's avatar Simon Glass
Browse files

dm: Remove spi_init() from board_r.c when using driver model


Driver model does its own init, so we don't need this.

There is still a call in board_f.c but it is only enabled by CONFIG_HARD_SPI.
It is easy enough to disable that option when converting boards which use
it to driver model.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
parent c60e1f25
No related branches found
No related tags found
No related merge requests found
...@@ -354,7 +354,7 @@ static int initr_flash(void) ...@@ -354,7 +354,7 @@ static int initr_flash(void)
} }
#endif #endif
#ifdef CONFIG_PPC #if defined(CONFIG_PPC) && !defined(CONFIG_DM_SPI)
static int initr_spi(void) static int initr_spi(void)
{ {
/* PPC does this here */ /* PPC does this here */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment