aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/davinci_spi.c
diff options
context:
space:
mode:
authorSekhar Nori <nsekhar@ti.com>2010-10-08 05:57:26 -0400
committerSekhar Nori <nsekhar@ti.com>2010-11-18 08:08:24 -0500
commit50356dd7c1f6338588af6a745649a718f16fe453 (patch)
tree0537d08c1a7e6b69117f5b062a124a5736c57be9 /drivers/spi/davinci_spi.c
parent8e206f1cbd0d1387bf7d5e463ca880b43458e2ea (diff)
spi: davinci: remove unnecessary typecast
The typecasting of SPI base address to davinci_spi_reg is unused. Remove it. Tested-By: Michael Williamson <michael.williamson@criticallink.com> Tested-By: Brian Niebuhr <bniebuhr@efjohnson.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'drivers/spi/davinci_spi.c')
-rw-r--r--drivers/spi/davinci_spi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index 7bd0a55f5bbd..76decda0c8da 100644
--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -1020,8 +1020,7 @@ static int davinci_spi_probe(struct platform_device *pdev)
1020 goto free_master; 1020 goto free_master;
1021 } 1021 }
1022 1022
1023 davinci_spi->base = (struct davinci_spi_reg __iomem *) 1023 davinci_spi->base = ioremap(r->start, davinci_spi->region_size);
1024 ioremap(r->start, davinci_spi->region_size);
1025 if (davinci_spi->base == NULL) { 1024 if (davinci_spi->base == NULL) {
1026 ret = -ENOMEM; 1025 ret = -ENOMEM;
1027 goto release_region; 1026 goto release_region;