diff mbox

spi: imx: Use dev_name() for request_irq() to distinguish SPIs

Message ID 1393075426-20882-1-git-send-email-shc_work@mail.ru (mailing list archive)
State Accepted
Commit 8fc39b516623f3beed18be701d2acfe0e50b8d86
Headers show

Commit Message

Alexander Shiyan Feb. 22, 2014, 1:23 p.m. UTC
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/spi/spi-imx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown Feb. 23, 2014, 1:46 a.m. UTC | #1
On Sat, Feb 22, 2014 at 05:23:46PM +0400, Alexander Shiyan wrote:
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index 3577939..bcb603c 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -884,7 +884,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;