spi/imx: Use dev_name() for request_irq() to distinguish SPIs
authorAlexander Shiyan <shc_work@mail.ru>
Sat, 22 Feb 2014 13:23:46 +0000 (17:23 +0400)
committerMark Brown <broonie@linaro.org>
Sun, 23 Feb 2014 01:46:24 +0000 (10:46 +0900)
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-imx.c

index ad6daf510d33f7e1577cbfa43878fca6272c2d1d..d2e08c4b5cc57aaa99b4e6bb94a20e6a742eba2a 100644 (file)
@@ -885,7 +885,7 @@ static int spi_imx_probe(struct platform_device *pdev)
        }
 
        ret = devm_request_irq(&pdev->dev, spi_imx->irq, spi_imx_isr, 0,
-                              DRIVER_NAME, spi_imx);
+                              dev_name(&pdev->dev), spi_imx);
        if (ret) {
                dev_err(&pdev->dev, "can't get irq%d: %d\n", spi_imx->irq, ret);
                goto out_master_put;