The typecasting of SPI base address to davinci_spi_reg is
unused.

Remove it.

Tested-By: Michael Williamson <[email protected]>
Tested-By: Brian Niebuhr <[email protected]>
Signed-off-by: Sekhar Nori <[email protected]>
---
 drivers/spi/davinci_spi.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index 7bd0a55..76decda 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)
                goto free_master;
        }
 
-       davinci_spi->base = (struct davinci_spi_reg __iomem *)
-                       ioremap(r->start, davinci_spi->region_size);
+       davinci_spi->base = ioremap(r->start, davinci_spi->region_size);
        if (davinci_spi->base == NULL) {
                ret = -ENOMEM;
                goto release_region;
-- 
1.7.3.2


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to