]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: syscon: Allow property as NULL in syscon_regmap_lookup_by_phandle
authorPankaj Dubey <pankaj.dubey@samsung.com>
Wed, 30 Apr 2014 02:14:26 +0000 (11:14 +0900)
committerLee Jones <lee.jones@linaro.org>
Fri, 23 May 2014 09:34:08 +0000 (10:34 +0100)
commitd343fc9f8142d3e166b0d7720217826b97968c31
treea53c37ea3248a8e9d25d6af84fd3421359dbae12
parentbd28f465cacca03dbd6dcdf789255514c8112dd9
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: Pankaj Dubey <pankaj.dubey@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/syscon.c