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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 18:23:53 +0000 (11:23 -0700)
commit5c19e95216b93b0d29c6a4887e69a980edc6fc81
tree345252b59a83bec24735caa96beead84f38a107d
parenta324e4de0ce5c467b33a54ed65cc2f41c68855ae
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>
drivers/of/base.c
include/linux/of.h