mirror of https://github.com/hak5/openwrt.git
29 lines
804 B
Diff
29 lines
804 B
Diff
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;
|
|
}
|
|
|