diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2013-01-26 11:28:08 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-26 22:21:56 +0100 |
commit | 773f63518652a329b08c6862241e7c9543cb7df0 (patch) | |
tree | b1c7ec2410a4e06c74aa85c960ba5f2d36b34769 /include/spi/spi.h | |
parent | 2c93912f34ce06585c4ede0298aef7225e096df2 (diff) | |
download | barebox-773f63518652a329b08c6862241e7c9543cb7df0.tar.gz barebox-773f63518652a329b08c6862241e7c9543cb7df0.tar.xz |
spi: fix compiler warning
Fixes:
drivers/spi/spi.c:59: warning: no previous prototype for 'spi_new_device'
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/spi/spi.h')
-rw-r--r-- | include/spi/spi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/spi/spi.h b/include/spi/spi.h index d6570a402c..fa76e9b59f 100644 --- a/include/spi/spi.h +++ b/include/spi/spi.h @@ -342,6 +342,8 @@ spi_transfer_del(struct spi_transfer *t) int spi_sync(struct spi_device *spi, struct spi_message *message); +struct spi_device *spi_new_device(struct spi_master *master, + struct spi_board_info *chip); int spi_register_master(struct spi_master *master); #ifdef CONFIG_SPI |