brcm2708: update 4.1 patches
[openwrt/svn-archive/archive.git] / target / linux / brcm2708 / patches-4.1 / 0159-spi-bcm2835-fixed-compile-issues-due-to-embedded-com.patch
1 From c36a53b3df68f0311b808f87c186b9623a28ecd9 Mon Sep 17 00:00:00 2001
2 From: Martin Sperl <kernel@martin.sperl.org>
3 Date: Wed, 22 Jul 2015 07:43:28 +0000
4 Subject: [PATCH 159/171] spi: bcm2835: fixed compile issues due to embedded
5 comments... replaced with #if to avoid issues in the future.
6
7 Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
8 ---
9 drivers/spi/spi-bcm2835.c | 2 ++
10 1 file changed, 2 insertions(+)
11
12 --- a/drivers/spi/spi-bcm2835.c
13 +++ b/drivers/spi/spi-bcm2835.c
14 @@ -592,6 +592,7 @@ static int bcm2835_spi_transfer_one(stru
15 return bcm2835_spi_transfer_one_irq(master, spi, tfr, cs);
16 }
17
18 +#if 0
19 static void bcm2835_spi_handle_err(struct spi_master *master,
20 struct spi_message *msg)
21 {
22 @@ -606,6 +607,7 @@ static void bcm2835_spi_handle_err(struc
23 /* and reset */
24 bcm2835_spi_reset_hw(master);
25 }
26 +#endif
27
28 static void bcm2835_spi_set_cs(struct spi_device *spi, bool gpio_level)
29 {