summaryrefslogtreecommitdiff
path: root/drivers/mfd/vexpress-sysreg.c
diff options
context:
space:
mode:
authorSemen Protsenko <semen.protsenko@linaro.org>2014-02-13 20:39:54 +0400
committerLee Jones <lee.jones@linaro.org>2014-03-19 12:58:15 +0400
commit63f5d2e8b227d54d6e0a750a4b9670a899fa1a05 (patch)
tree0cbae1c2603f673e34503910e1296dbce8cdd7c2 /drivers/mfd/vexpress-sysreg.c
parent141050cf3d84fc303df58796d68dc1376b0e8f67 (diff)
downloadlinux-63f5d2e8b227d54d6e0a750a4b9670a899fa1a05.tar.xz
mfd: vexpress-sysreg: Initialize 'site' variable
'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>
Diffstat (limited to 'drivers/mfd/vexpress-sysreg.c')
-rw-r--r--drivers/mfd/vexpress-sysreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/vexpress-sysreg.c b/drivers/mfd/vexpress-sysreg.c
index 981bef4b7ebc..35281e804e7e 100644
--- a/drivers/mfd/vexpress-sysreg.c
+++ b/drivers/mfd/vexpress-sysreg.c
@@ -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];