From: Semen Protsenko Date: Thu, 13 Feb 2014 16:39:54 +0000 (+0200) Subject: mfd: vexpress-sysreg: Initialize 'site' variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=63f5d2e8b227d54d6e0a750a4b9670a899fa1a05;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Lee Jones --- 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];