summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-03-30 15:04:32 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-30 23:46:27 +0200
commitbd28ade42a334d7102cd3999331d9320f169bcbf (patch)
tree1d54e8f6a56cb63e0553b470c00cec6d7c414e9e /include
parentb6089182316d831c3bfe0d96994df7e372a43c1b (diff)
downloadbarebox-bd28ade42a334d7102cd3999331d9320f169bcbf.tar.gz
barebox-bd28ade42a334d7102cd3999331d9320f169bcbf.tar.xz
of: partition: Move of_mtd_fixup to drivers/of/
Move the fixup code where the parser code is already. Since the code will not only be used for mtd in the future drivers/of/ is a better place than drivers/mtd/. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index 6bff13388d..87d96055a2 100644
--- a/include/of.h
+++ b/include/of.h
@@ -240,6 +240,7 @@ extern struct device_d *of_device_enable_and_register_by_name(const char *name);
struct cdev *of_parse_partition(struct cdev *cdev, struct device_node *node);
int of_parse_partitions(struct cdev *cdev, struct device_node *node);
+int of_partitions_register_fixup(struct cdev *cdev);
int of_device_is_stdout_path(struct device_d *dev);
const char *of_get_model(void);
void *of_flatten_dtb(struct device_node *node);
@@ -264,6 +265,11 @@ static inline int of_parse_partitions(struct cdev *cdev,
return -EINVAL;
}
+static inline int of_partitions_register_fixup(struct cdev *cdev)
+{
+ return -ENOSYS;
+}
+
static inline int of_device_is_stdout_path(struct device_d *dev)
{
return 0;