mfd: vexpress-sysreg: Initialize 'site' variable
authorSemen Protsenko <semen.protsenko@linaro.org>
Thu, 13 Feb 2014 16:39:54 +0000 (18:39 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 19 Mar 2014 08:58:15 +0000 (08:58 +0000)
'site' variable should be initialized with 0 so that when 'site'
property doesn't exist in DTB it can be handled correctly.

'0' value means board site number is motherboard (see
Documentation/devicetree/bindings/arm/vexpress.txt for details).

Signed-off-by: Semen Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/vexpress-sysreg.c

index 981bef4b7ebcaa60b861d171a57f166a6218837d..35281e804e7ef3879d7c6f18d28d127d7b62338a 100644 (file)
@@ -168,7 +168,7 @@ static void *vexpress_sysreg_config_func_get(struct device *dev,
                struct device_node *node)
 {
        struct vexpress_sysreg_config_func *config_func;
-       u32 site;
+       u32 site = 0;
        u32 position = 0;
        u32 dcc = 0;
        u32 func_device[2];