mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
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>
This commit is contained in:
parent
8e206f1cbd
commit
50356dd7c1
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue