From bd28ade42a334d7102cd3999331d9320f169bcbf Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 30 Mar 2017 15:04:32 +0200 Subject: 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 --- include/of.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/of.h') 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; -- cgit v1.2.3