Skip to content
Commit 45330bb4 authored by Pankaj Dubey's avatar Pankaj Dubey Committed by Lee Jones
Browse files

mfd: syscon: Allow property as NULL in syscon_regmap_lookup_by_phandle



If we pass syscon device node itself as first parameter to this function
there is no need to parse and find syscon device node. So by allowing
"property" parameter as NULL allow syscon_regmap_lookup_by_phandle to
consider passed argument "np" itself as a syscon device node "syscon_np".
This will help us in avoiding addition of "syscon" property in a device node
which points back to same device node in device tree.

Signed-off-by: default avatarPankaj Dubey <pankaj.dubey@samsung.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 3e87933a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment