Skip to contentSkip to conversation

mfd: vexpress-sysreg: initialize "site" variable

PATCH Applied Semen Protsenko 2 participants 2 messages Feb 13, 2014 – Feb 14, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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).

---
 drivers/mfd/vexpress-sysreg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/vexpress-sysreg.c +1 -1
index 981bef4..35281e8 100644
@@ -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];
Signature · 1 line
1.8.5.3
Applied
#1 lore raw
Quoted 10 lines

"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).

---
 drivers/mfd/vexpress-sysreg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog