irqchip/irq-imx-gpcv2: Make error messages more consistent
authorAndrey Smirnov <[email protected]>
Thu, 6 Dec 2018 07:31:24 +0000 (23:31 -0800)
committerMarc Zyngier <[email protected]>
Thu, 13 Dec 2018 09:35:55 +0000 (09:35 +0000)
Make error messages more consistent by making sure each starts with
"%pOF:".

Cc: Thomas Gleixner <[email protected]>
Cc: Jason Cooper <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Leonard Crestez <[email protected]>
Cc: "A.s. Dong" <[email protected]>
Cc: Richard Zhu <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Andrey Smirnov <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
drivers/irqchip/irq-imx-gpcv2.c

index 077d56b3183a848460aab9e8e1a2740c5160b74b..c2b2b3128dddb245de00bd85205bb258b7acd0bb 100644 (file)
@@ -212,7 +212,7 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node,
 
        cd = kzalloc(sizeof(struct gpcv2_irqchip_data), GFP_KERNEL);
        if (!cd) {
-               pr_err("kzalloc failed!\n");
+               pr_err("%pOF: kzalloc failed!\n", node);
                return -ENOMEM;
        }
 
@@ -220,7 +220,7 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node,
 
        cd->gpc_base = of_iomap(node, 0);
        if (!cd->gpc_base) {
-               pr_err("fsl-gpcv2: unable to map gpc registers\n");
+               pr_err("%pOF: unable to map gpc registers\n", node);
                kfree(cd);
                return -ENOMEM;
        }