Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22fb7d9b authored by Timur Tabi's avatar Timur Tabi Committed by Kumar Gala
Browse files

[POWERPC] fsl: Add warning for unrecognized I2C nodes in the device tree



Update of_find_i2c_driver in fsl_soc.c to display a warning message if an
I2C node in the device tree isn't found in the i2c_devices[] array.

Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 692d1037
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -448,6 +448,10 @@ static int __init of_find_i2c_driver(struct device_node *node,
			return -ENOMEM;
		return 0;
	}

	pr_warning("fsl_soc.c: unrecognized i2c node %s\n",
		(const char *) of_get_property(node, "compatible", NULL));

	return -ENODEV;
}