diff options
author | jogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-05-19 18:32:13 +0000 |
---|---|---|
committer | jogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-05-19 18:32:13 +0000 |
commit | f6a2f33347da35ced5d08990c3bdc086c97b11c7 (patch) | |
tree | 1462b284b9bb6c1b3416a7de0ddd35dab51959c3 /target/linux/brcm63xx/patches-3.9/011-spi-bcm63xx-remove-spi-chip-select-validity-check.patch | |
parent | 2ce30d075aab8baa7aae7ac3d58e46690e02f282 (diff) |
bcm63xx: add 3.9 support
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36660 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/patches-3.9/011-spi-bcm63xx-remove-spi-chip-select-validity-check.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-3.9/011-spi-bcm63xx-remove-spi-chip-select-validity-check.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-3.9/011-spi-bcm63xx-remove-spi-chip-select-validity-check.patch b/target/linux/brcm63xx/patches-3.9/011-spi-bcm63xx-remove-spi-chip-select-validity-check.patch new file mode 100644 index 0000000000..4f1a1cc2a8 --- /dev/null +++ b/target/linux/brcm63xx/patches-3.9/011-spi-bcm63xx-remove-spi-chip-select-validity-check.patch @@ -0,0 +1,28 @@ +From 9c5a988562468823a5e2973f04134a8bd97e7718 Mon Sep 17 00:00:00 2001 +From: Jonas Gorski <jogo@openwrt.org> +Date: Mon, 11 Mar 2013 13:53:16 +0100 +Subject: [PATCH 09/12] spi/bcm63xx: remove spi chip select validity check + +The check would belong in bcm63xx_spi_setup if the spi subsystem +weren't already doing the check for us, so just drop it. + +Signed-off-by: Jonas Gorski <jogo@openwrt.org> +--- + drivers/spi/spi-bcm63xx.c | 6 ------ + 1 file changed, 6 deletions(-) + +--- a/drivers/spi/spi-bcm63xx.c ++++ b/drivers/spi/spi-bcm63xx.c +@@ -102,12 +102,6 @@ static int bcm63xx_spi_check_transfer(st + return -EINVAL; + } + +- if (spi->chip_select > spi->master->num_chipselect) { +- dev_err(&spi->dev, "%s, unsupported slave %d\n", +- __func__, spi->chip_select); +- return -EINVAL; +- } +- + return 0; + } + |