OF: Add helper for matching against linux,stdout-path
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 5 Aug 2013 12:40:44 +0000 (14:40 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 24 Jul 2014 18:47:29 +0000 (19:47 +0100)
commit88a8104df9b0f987f1a2995e1ae108662689ba61
tree9aab245d68aff4cd41faedeebcf274fa52e4c5c3
parentfb0399cdbf68d79fe31c32ac6169bff0f048d2e9
OF: Add helper for matching against linux,stdout-path

devicetrees may have a linux,stdout-path property in the chosen
node describing the console device. This adds a helper function
to match a device against this property so a driver can call
add_preferred_console for a matching device.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 5c19e95216b93b0d29c6a4887e69a980edc6fc81)
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/of/base.c
include/linux/of.h