diff options
author | Mark Brown <broonie@kernel.org> | 2019-09-15 05:32:06 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-09-15 05:32:06 -0400 |
commit | b769c5ba8aedc395ed04abe6db84a556d28beec1 (patch) | |
tree | dd00c955f899f65785d60c2b4673785c28054b30 /drivers/spi/spi-cadence.c | |
parent | 262a2f33454fcecdc2032ca84d6fecdb08233468 (diff) | |
parent | fdeae8f5a2e5eb3fcc9c295bfb28503c3abd4d6e (diff) |
Merge branch 'spi-5.4' into spi-next
Diffstat (limited to 'drivers/spi/spi-cadence.c')
-rw-r--r-- | drivers/spi/spi-cadence.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c index 7c41e4e82849..c36587b42e95 100644 --- a/drivers/spi/spi-cadence.c +++ b/drivers/spi/spi-cadence.c | |||
@@ -474,7 +474,6 @@ static int cdns_spi_probe(struct platform_device *pdev) | |||
474 | int ret = 0, irq; | 474 | int ret = 0, irq; |
475 | struct spi_master *master; | 475 | struct spi_master *master; |
476 | struct cdns_spi *xspi; | 476 | struct cdns_spi *xspi; |
477 | struct resource *res; | ||
478 | u32 num_cs; | 477 | u32 num_cs; |
479 | 478 | ||
480 | master = spi_alloc_master(&pdev->dev, sizeof(*xspi)); | 479 | master = spi_alloc_master(&pdev->dev, sizeof(*xspi)); |
@@ -485,8 +484,7 @@ static int cdns_spi_probe(struct platform_device *pdev) | |||
485 | master->dev.of_node = pdev->dev.of_node; | 484 | master->dev.of_node = pdev->dev.of_node; |
486 | platform_set_drvdata(pdev, master); | 485 | platform_set_drvdata(pdev, master); |
487 | 486 | ||
488 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 487 | xspi->regs = devm_platform_ioremap_resource(pdev, 0); |
489 | xspi->regs = devm_ioremap_resource(&pdev->dev, res); | ||
490 | if (IS_ERR(xspi->regs)) { | 488 | if (IS_ERR(xspi->regs)) { |
491 | ret = PTR_ERR(xspi->regs); | 489 | ret = PTR_ERR(xspi->regs); |
492 | goto remove_master; | 490 | goto remove_master; |
@@ -540,7 +538,6 @@ static int cdns_spi_probe(struct platform_device *pdev) | |||
540 | irq = platform_get_irq(pdev, 0); | 538 | irq = platform_get_irq(pdev, 0); |
541 | if (irq <= 0) { | 539 | if (irq <= 0) { |
542 | ret = -ENXIO; | 540 | ret = -ENXIO; |
543 | dev_err(&pdev->dev, "irq number is invalid\n"); | ||
544 | goto clk_dis_all; | 541 | goto clk_dis_all; |
545 | } | 542 | } |
546 | 543 | ||