spi: spi-mxs: Register the irq with the device name
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 10 Nov 2014 19:25:24 +0000 (17:25 -0200)
committerMark Brown <broonie@kernel.org>
Mon, 10 Nov 2014 19:37:30 +0000 (19:37 +0000)
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 <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mxs.c

index 51460878af041f6ce85c518415c13f74fc04c46e..a9e72f9d385e4e8ff73eb8766d2cf519b46768ac 100644 (file)
@@ -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;