brcm63xx: switch to 3.9 kernel
[openwrt/staging/yousong.git] / target / linux / brcm63xx / patches-3.8 / 011-spi-bcm63xx-remove-spi-chip-select-validity-check.patch
1 From 9c5a988562468823a5e2973f04134a8bd97e7718 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jogo@openwrt.org>
3 Date: Mon, 11 Mar 2013 13:53:16 +0100
4 Subject: [PATCH 09/12] spi/bcm63xx: remove spi chip select validity check
5
6 The check would belong in bcm63xx_spi_setup if the spi subsystem
7 weren't already doing the check for us, so just drop it.
8
9 Signed-off-by: Jonas Gorski <jogo@openwrt.org>
10 ---
11 drivers/spi/spi-bcm63xx.c | 6 ------
12 1 file changed, 6 deletions(-)
13
14 --- a/drivers/spi/spi-bcm63xx.c
15 +++ b/drivers/spi/spi-bcm63xx.c
16 @@ -102,12 +102,6 @@ static int bcm63xx_spi_check_transfer(st
17 return -EINVAL;
18 }
19
20 - if (spi->chip_select > spi->master->num_chipselect) {
21 - dev_err(&spi->dev, "%s, unsupported slave %d\n",
22 - __func__, spi->chip_select);
23 - return -EINVAL;
24 - }
25 -
26 return 0;
27 }
28