of: align RESERVEDMEM_OF_DECLARE function callbacks to other callbacks
authorRob Herring <robh@kernel.org>
Thu, 8 May 2014 21:06:17 +0000 (16:06 -0500)
committerRob Herring <robh@kernel.org>
Tue, 20 May 2014 19:25:21 +0000 (14:25 -0500)
All the parameters for RESERVEDMEM_OF_DECLARE function callbacks are
members of struct reserved_mem, so just pass the struct ptr to callback
functions so the function callback is more in line with other OF match
table callbacks.

Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/of_reserved_mem.c
include/linux/of_reserved_mem.h

index e420eb52e5c92a6b61e8f38be16c62a4fe2e06c8..632aae8613756b6d1c433485e6ad0d075f11af66 100644 (file)
@@ -188,7 +188,7 @@ static int __init __reserved_mem_init_node(struct reserved_mem *rmem)
                if (!of_flat_dt_is_compatible(rmem->fdt_node, compat))
                        continue;
 
-               if (initfn(rmem, rmem->fdt_node, rmem->name) == 0) {
+               if (initfn(rmem) == 0) {
                        pr_info("Reserved memory: initialized node %s, compatible id %s\n",
                                rmem->name, compat);
                        return 0;
index 9b1fbb7f29fc65a38782ecddd9282351a20c4a21..4c81b84e95ff1f0555ce97119f4cc46c3df1b6b0 100644 (file)
@@ -21,8 +21,8 @@ struct reserved_mem_ops {
                                  struct device *dev);
 };
 
-typedef int (*reservedmem_of_init_fn)(struct reserved_mem *rmem,
-                                     unsigned long node, const char *uname);
+typedef int (*reservedmem_of_init_fn)(struct reserved_mem *rmem);
+
 
 #ifdef CONFIG_OF_RESERVED_MEM
 void fdt_init_reserved_mem(void);