Skip to content

Commit

Permalink
spi/dw_spi: Fix missing header
Browse files Browse the repository at this point in the history
Currently, build on PPC dies with:
In file included from drivers/spi/dw_spi_mmio.c:16:
include/linux/spi/dw_spi.h:147: error: field ‘tx_sgl’ has incomplete type
include/linux/spi/dw_spi.h:149: error: field ‘rx_sgl’ has incomplete type

Add linux/scatterlist.h include to dw_spi.h, because we need to know
the contents of the structure.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Jiri Slaby authored and Grant Likely committed Mar 18, 2011
1 parent 84bead6 commit 46165a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/spi/dw_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define DW_SPI_HEADER_H

#include <linux/io.h>
#include <linux/scatterlist.h>

/* Bit fields in CTRLR0 */
#define SPI_DFS_OFFSET 0
Expand Down

0 comments on commit 46165a3

Please sign in to comment.