brcm63xx: switch to 3.9 kernel
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.8 / 006-spi-bcm63xx-remove-duplicated-mode-bits-check.patch
1 From 3abf34d4e0460bb098fabe3cc8207108bae1905a Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jogo@openwrt.org>
3 Date: Mon, 11 Mar 2013 13:40:26 +0100
4 Subject: [PATCH 04/12] spi/bcm63xx: remove duplicated mode bits check
5
6 The spi subsystem already checks the mode bits before calling setup.
7
8 Signed-off-by: Jonas Gorski <jogo@openwrt.org>
9 ---
10 drivers/spi/spi-bcm63xx.c | 6 ------
11 1 file changed, 6 deletions(-)
12
13 --- a/drivers/spi/spi-bcm63xx.c
14 +++ b/drivers/spi/spi-bcm63xx.c
15 @@ -158,12 +158,6 @@ static int bcm63xx_spi_setup(struct spi_
16 if (!spi->bits_per_word)
17 spi->bits_per_word = 8;
18
19 - if (spi->mode & ~MODEBITS) {
20 - dev_err(&spi->dev, "%s, unsupported mode bits %x\n",
21 - __func__, spi->mode & ~MODEBITS);
22 - return -EINVAL;
23 - }
24 -
25 dev_dbg(&spi->dev, "%s, mode %d, %u bits/w, %u nsec/bit\n",
26 __func__, spi->mode & MODEBITS, spi->bits_per_word, 0);
27