diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-09-10 10:11:41 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-14 14:48:16 -0400 |
commit | a45fcea5b20f1dcc2abb08aa29ecb2feacae60f2 (patch) | |
tree | ebe90e92c22123acd10fd96254193e770bebae1d | |
parent | 65059997306901f4da1f5168db65de8225d5d04c (diff) |
spi/bcm63xx: hardcode busnum to 0
We always pass 0 as the spi bus number, so we might as well hard code
it.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-bcm63xx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index a997c641b692..c1364a8fa268 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #define BCM63XX_SPI_MAX_PREPEND 15 | 32 | #define BCM63XX_SPI_MAX_PREPEND 15 |
33 | 33 | ||
34 | #define BCM63XX_SPI_MAX_CS 8 | 34 | #define BCM63XX_SPI_MAX_CS 8 |
35 | #define BCM63XX_SPI_BUS_NUM 0 | ||
35 | 36 | ||
36 | struct bcm63xx_spi { | 37 | struct bcm63xx_spi { |
37 | struct completion done; | 38 | struct completion done; |
@@ -369,7 +370,7 @@ static int bcm63xx_spi_probe(struct platform_device *pdev) | |||
369 | goto out_err; | 370 | goto out_err; |
370 | } | 371 | } |
371 | 372 | ||
372 | master->bus_num = pdata->bus_num; | 373 | master->bus_num = BCM63XX_SPI_BUS_NUM; |
373 | master->num_chipselect = BCM63XX_SPI_MAX_CS; | 374 | master->num_chipselect = BCM63XX_SPI_MAX_CS; |
374 | master->transfer_one_message = bcm63xx_spi_transfer_one; | 375 | master->transfer_one_message = bcm63xx_spi_transfer_one; |
375 | master->mode_bits = MODEBITS; | 376 | master->mode_bits = MODEBITS; |