mmc: mxs-mmc: Register the irq with the device name
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 18 Nov 2014 02:37:12 +0000 (00:37 -0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 26 Nov 2014 13:31:02 +0000 (14:31 +0100)
Instead of registering the irq name with the driver's name, it's better to pass
the device name so that we have a more explicit indication as to what mmc
instance the irq is related:

$ cat /proc/interrupts
           CPU0
...
 26:          6         -  96  80010000.ssp

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mxs-mmc.c

index cd74e5143c36a2d2c90641e45723920364ca08b1..339059a9a64846a371c38e0cb9db8b508b0c7ed3 100644 (file)
@@ -660,7 +660,7 @@ static int mxs_mmc_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, mmc);
 
        ret = devm_request_irq(&pdev->dev, irq_err, mxs_mmc_irq_handler, 0,
-                              DRIVER_NAME, host);
+                              dev_name(&pdev->dev), host);
        if (ret)
                goto out_free_dma;