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 | 500fac17357c37f07b9e8535b44d355d442b3b55 (patch) | |
tree | 3455cbcd7a3fb0258bdfbc05f4ac83979e12334f /target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c | |
parent | 7fad1dae857560b400794ff2727a527ae3cfa750 (diff) | |
download | mtk-20170518-500fac17357c37f07b9e8535b44d355d442b3b55.zip mtk-20170518-500fac17357c37f07b9e8535b44d355d442b3b55.tar.gz mtk-20170518-500fac17357c37f07b9e8535b44d355d442b3b55.tar.bz2 |
ar71xx: fix whitespaces nits
(build error has been fixed - juhosg)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23975
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 731f501..2b22999 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) |