of: Create of_console_check() for selecting a console specified in /chosen
authorGrant Likely <grant.likely@linaro.org>
Fri, 28 Mar 2014 00:18:55 +0000 (17:18 -0700)
committerGrant Likely <grant.likely@linaro.org>
Thu, 26 Jun 2014 16:12:22 +0000 (17:12 +0100)
commit3482f2c52b77bf6596e24aae82e204a0603eba66
tree60af2ac594655852208091c69c4197964e80a0da
parenta497c3ba1d97fc69c1e78e7b96435ba8c2cb42ee
of: Create of_console_check() for selecting a console specified in /chosen

The devicetree has a binding for specifying the console device in the
/chosen node, but the kernel doesn't use it consistently. This change
adds an API for testing if a device node is a console, and adds a
preferred console entry if it is.

At the same time this patch removes the of_device_is_stdout_path() API
since it is unused.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Tested-by: Sascha Hauer <s.hauer@pengutronix.de>
drivers/of/base.c
include/linux/of.h