summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-04-22 10:20:12 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-04-23 08:12:28 +0200
commit885a1cf27e6ae7a39113dd6c707d400c1585b35c (patch)
tree0042057d9f4946784d00c3f48aa71a3ed5a6fac3 /drivers/misc
parent0238fb4c0da005421ed11b3e178558a140029972 (diff)
downloadbarebox-885a1cf27e6ae7a39113dd6c707d400c1585b35c.tar.gz
barebox-885a1cf27e6ae7a39113dd6c707d400c1585b35c.tar.xz
of_path: of_find_path(): add possibility to return .bb device
This patch adds a flags argument to the of_find_path() function. The only flag defined for now is OF_FIND_PATH_FLAGS_BB. When used on NAND devices, the function returns the bad block aware device (the ".bb" device). Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/state.c b/drivers/misc/state.c
index f066a836cb..3b07bb93d7 100644
--- a/drivers/misc/state.c
+++ b/drivers/misc/state.c
@@ -41,7 +41,7 @@ static int state_probe(struct device_d *dev)
if (IS_ERR(state))
return PTR_ERR(state);
- ret = of_find_path(np, "backend", &path);
+ ret = of_find_path(np, "backend", &path, 0);
if (ret)
return ret;