aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-s3c64xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi-s3c64xx.c')
-rw-r--r--drivers/spi/spi-s3c64xx.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index 7cfbe9d3381f..e862ab8853aa 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -1241,10 +1241,9 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
1241 /* the spi->mode bits understood by this driver: */ 1241 /* the spi->mode bits understood by this driver: */
1242 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; 1242 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH;
1243 1243
1244 sdd->regs = devm_request_and_ioremap(&pdev->dev, mem_res); 1244 sdd->regs = devm_ioremap_resource(&pdev->dev, mem_res);
1245 if (sdd->regs == NULL) { 1245 if (IS_ERR(sdd->regs)) {
1246 dev_err(&pdev->dev, "Unable to remap IO\n"); 1246 ret = PTR_ERR(sdd->regs);
1247 ret = -ENXIO;
1248 goto err0; 1247 goto err0;
1249 } 1248 }
1250 1249