From 773f63518652a329b08c6862241e7c9543cb7df0 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Sat, 26 Jan 2013 11:28:08 +0400 Subject: [PATCH] spi: fix compiler warning Fixes: drivers/spi/spi.c:59: warning: no previous prototype for 'spi_new_device' Signed-off-by: Antony Pavlov Signed-off-by: Sascha Hauer --- include/spi/spi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/spi/spi.h b/include/spi/spi.h index d6570a402..fa76e9b59 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