From: Fabio Estevam Date: Mon, 10 Nov 2014 19:25:24 +0000 (-0200) Subject: spi: spi-mxs: Register the irq with the device name X-Git-Tag: v3.19-rc1~124^2~1^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=617100c2711691e07728d3201fbcfa845a7c36d5;p=karo-tx-linux.git spi: spi-mxs: Register the irq with the device name Instead of registering the irq name with the driver name, it's better to pass the device name so that we have a more explicit indication as to what spi instance the irq is related: $ cat /proc/interrupts CPU0 ... 27: 0 - 98 80014000.ssp Signed-off-by: Fabio Estevam Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c index 51460878af04..a9e72f9d385e 100644 --- a/drivers/spi/spi-mxs.c +++ b/drivers/spi/spi-mxs.c @@ -511,7 +511,7 @@ static int mxs_spi_probe(struct platform_device *pdev) init_completion(&spi->c); ret = devm_request_irq(&pdev->dev, irq_err, mxs_ssp_irq_handler, 0, - DRIVER_NAME, ssp); + dev_name(&pdev->dev), ssp); if (ret) goto out_master_free;