diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-11-12 18:50:29 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-11-12 18:50:29 +0000 |
commit | 7832529d3fbbe20a07e5e2111ab67542500da007 (patch) | |
tree | 6636bb51d032be5cc750361b9e63af378b148a41 /target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c | |
parent | 7e6b8b68bbb6a4a910cedd1b953891aeeaab8c75 (diff) | |
download | master-187ad058-7832529d3fbbe20a07e5e2111ab67542500da007.tar.gz master-187ad058-7832529d3fbbe20a07e5e2111ab67542500da007.tar.bz2 master-187ad058-7832529d3fbbe20a07e5e2111ab67542500da007.zip |
ar71xx: fix whitespaces nits
(build error has been fixed - juhosg)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23975 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c')
-rw-r--r-- | target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c b/target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c index 731f501547..2b22999915 100644 --- a/target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c +++ b/target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c @@ -247,7 +247,7 @@ static int rb4xx_spi_msg(struct rb4xx_spi *rbspi, struct spi_message *m) __raw_writel(SPI_CTRL_FASTEST, base + SPI_REG_CTRL); do_spi_init(m->spi); - list_for_each_entry (t, &m->transfers, transfer_list) { + list_for_each_entry(t, &m->transfers, transfer_list) { int len; len = rb4xx_spi_txrx(base, t); @@ -338,13 +338,13 @@ static int rb4xx_spi_setup(struct spi_device *spi) if (spi->mode & ~(SPI_CS_HIGH)) { dev_err(&spi->dev, "mode %x not supported\n", - (unsigned) spi->mode); + (unsigned) spi->mode); return -EINVAL; } if (spi->bits_per_word != 8 && spi->bits_per_word != 0) { dev_err(&spi->dev, "bits_per_word %u not supported\n", - (unsigned) spi->bits_per_word); + (unsigned) spi->bits_per_word); return -EINVAL; } @@ -432,12 +432,12 @@ static int rb4xx_spi_probe(struct platform_device *pdev) return 0; - err_iounmap: +err_iounmap: iounmap(rbspi->base); - err_put_master: +err_put_master: platform_set_drvdata(pdev, NULL); spi_master_put(master); - err_out: +err_out: return err; } @@ -455,10 +455,10 @@ static int rb4xx_spi_remove(struct platform_device *pdev) static struct platform_driver rb4xx_spi_drv = { .probe = rb4xx_spi_probe, .remove = rb4xx_spi_remove, - .driver = { + .driver = { .name = DRV_NAME, .owner = THIS_MODULE, - }, + }, }; static int __init rb4xx_spi_init(void) |