diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-03-11 10:32:44 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-03-11 10:32:44 +0000 |
commit | 8065eb4a551f4c2874a761325a0a83ef6784784d (patch) | |
tree | 0bbc791b23e08a9140e164341aec40d5aa4395c6 /target/linux/brcm63xx/files/arch/mips | |
parent | 51125fb616aef134ddd538021aea53b570a5c0a3 (diff) | |
download | upstream-8065eb4a551f4c2874a761325a0a83ef6784784d.tar.gz upstream-8065eb4a551f4c2874a761325a0a83ef6784784d.tar.bz2 upstream-8065eb4a551f4c2874a761325a0a83ef6784784d.zip |
do not duplicate fifo_size, since RX and TX fifo sizes are the same, request_mem_region on the registers
SVN-Revision: 14848
Diffstat (limited to 'target/linux/brcm63xx/files/arch/mips')
-rw-r--r-- | target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-spi.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-spi.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-spi.c index bfbda2b17f..1ba4aded3a 100644 --- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-spi.c +++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-spi.c @@ -50,15 +50,11 @@ int __init bcm63xx_spi_register(void) spi_resources[1].start = bcm63xx_get_irq_number(IRQ_SPI); /* Fill in platform data */ - if (BCMCPU_IS_6338() || BCMCPU_IS_6348()) { - spi_pdata.msg_fifo_size = SPI_BCM_6338_SPI_MSG_DATA_SIZE; - spi_pdata.rx_fifo_size = SPI_BCM_6338_SPI_RX_DATA_SIZE; - } + if (BCMCPU_IS_6338() || BCMCPU_IS_6348()) + spi_pdata.fifo_size = SPI_BCM_6338_SPI_MSG_DATA_SIZE; - if (BCMCPU_IS_6358()) { - spi_pdata.msg_fifo_size = SPI_BCM_6358_SPI_MSG_DATA_SIZE; - spi_pdata.rx_fifo_size = SPI_BCM_6358_SPI_RX_DATA_SIZE; - } + if (BCMCPU_IS_6358()) + spi_pdata.fifo_size = SPI_BCM_6358_SPI_MSG_DATA_SIZE; return platform_device_register(&bcm63xx_spi_device); } |