]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: fsl_spdif: Make error message concise
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 7 Jan 2015 15:44:36 +0000 (13:44 -0200)
committerMark Brown <broonie@kernel.org>
Thu, 8 Jan 2015 18:34:48 +0000 (18:34 +0000)
Currently the error message uses 'np->full_name' which leads to a very verbose
log that contains the full path of the node.

We can have a concise log by using pdev->name instead.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_spdif.c

index af0429421fc8b4997874777acf58950908ec317f..735e2eec52f7f2cb9f380f69db6e779666fad807 100644 (file)
@@ -1198,7 +1198,7 @@ static int fsl_spdif_probe(struct platform_device *pdev)
 
        irq = platform_get_irq(pdev, 0);
        if (irq < 0) {
-               dev_err(&pdev->dev, "no irq for node %s\n", np->full_name);
+               dev_err(&pdev->dev, "no irq for node %s\n", pdev->name);
                return irq;
        }