ASoC: mxs: mxs-saif: Register the irq with the device name
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 10 Nov 2014 19:49:30 +0000 (17:49 -0200)
committerMark Brown <broonie@kernel.org>
Mon, 10 Nov 2014 19:58:31 +0000 (19:58 +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 saif
instance the irq is related:

$ cat /proc/interrupts
           CPU0
...
214:          4         -  59  80042000.saif
215:          0         -  58  80046000.saif

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mxs/mxs-saif.c

index 231d7e7b07110d9e219788810acf70d62f1e00c6..83b2fea0921967ffa8820887127c2b573b5dd1f5 100644 (file)
@@ -773,7 +773,7 @@ static int mxs_saif_probe(struct platform_device *pdev)
 
        saif->dev = &pdev->dev;
        ret = devm_request_irq(&pdev->dev, saif->irq, mxs_saif_irq, 0,
-                              "mxs-saif", saif);
+                              dev_name(&pdev->dev), saif);
        if (ret) {
                dev_err(&pdev->dev, "failed to request irq\n");
                return ret;