summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-sh.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi/spi-sh.c')
-rw-r--r--drivers/spi/spi-sh.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-sh.c b/drivers/spi/spi-sh.c
index f1ee58208216..20bdae5fdf3b 100644
--- a/drivers/spi/spi-sh.c
+++ b/drivers/spi/spi-sh.c
@@ -437,10 +437,8 @@ static int spi_sh_probe(struct platform_device *pdev)
437 } 437 }
438 438
439 irq = platform_get_irq(pdev, 0); 439 irq = platform_get_irq(pdev, 0);
440 if (irq < 0) { 440 if (irq < 0)
441 dev_err(&pdev->dev, "platform_get_irq error: %d\n", irq);
442 return irq; 441 return irq;
443 }
444 442
445 master = spi_alloc_master(&pdev->dev, sizeof(struct spi_sh_data)); 443 master = spi_alloc_master(&pdev->dev, sizeof(struct spi_sh_data));
446 if (master == NULL) { 444 if (master == NULL) {