ASoC: mediatek: use %pOFn instead of device_node.name
authorKaiChieh Chuang <kaichieh.chuang@mediatek.com>
Mon, 11 Feb 2019 03:04:41 +0000 (11:04 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 11 Feb 2019 16:01:48 +0000 (16:01 +0000)
In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.

Signed-off-by: KaiChieh Chuang <kaichieh.chuang@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/common/mtk-btcvsd.c
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c

index e408c1b270ab801a8b6f32f9def513db0a52a5d0..4b613d57e2d4f91bc0088c3ec043f4c0c78c23c1 100644 (file)
@@ -1269,7 +1269,7 @@ static int mtk_btcvsd_snd_probe(struct platform_device *pdev)
        /* irq */
        irq_id = platform_get_irq(pdev, 0);
        if (irq_id <= 0) {
-               dev_err(dev, "%s no irq found\n", dev->of_node->name);
+               dev_err(dev, "%pOFn no irq found\n", dev->of_node);
                return irq_id < 0 ? irq_id : -ENXIO;
        }
 
index ff3111ec876c94651101ad715cd784374411a631..4e045dd305a7bcfd65ff56f48af8fad53d69a0c1 100644 (file)
@@ -1139,7 +1139,7 @@ static int mt8183_afe_pcm_dev_probe(struct platform_device *pdev)
        /* request irq */
        irq_id = platform_get_irq(pdev, 0);
        if (!irq_id) {
-               dev_err(dev, "%s no irq found\n", dev->of_node->name);
+               dev_err(dev, "%pOFn no irq found\n", dev->of_node);
                return -ENXIO;
        }
        ret = devm_request_irq(dev, irq_id, mt8183_afe_irq_handler,