Commit cffedec2e8f7f11fbe31f4706a222d279cf19c1d

Authored by Rasmus Villemoes
Committed by Tom Rini
1 parent 077e72c6e6

spi: mpc8xxx_spi: fix missing dev_err definition

The build currently fails with

drivers/spi/mpc8xxx_spi.c:64:3: warning: implicit declaration of function ‘dev_err’ [-Wimplicit-function-declaration]
...
drivers/spi/built-in.o: In function `mpc8xxx_spi_set_speed':
drivers/spi/mpc8xxx_spi.c:227: undefined reference to `dev_err'

Fixes: 4856cc7a97 (mpc8xxx_spi: implement real ->set_speed)
Fixes: 1a7b462dee (mpc8xxx_spi: put max_cs to use)
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/spi/mpc8xxx_spi.c
... ... @@ -12,6 +12,7 @@
12 12 #include <spi.h>
13 13 #include <asm/mpc8xxx_spi.h>
14 14 #include <asm-generic/gpio.h>
  15 +#include <dm/device_compat.h>
15 16  
16 17 enum {
17 18 SPI_EV_NE = BIT(31 - 22), /* Receiver Not Empty */