From patchwork Thu Feb 13 16:39:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 3646291 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F3B539F1EE for ; Thu, 13 Feb 2014 16:46:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3325B201CE for ; Thu, 13 Feb 2014 16:46:00 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3BAC520154 for ; Thu, 13 Feb 2014 16:45:59 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDzQ8-0007ZG-Sr; Thu, 13 Feb 2014 16:45:53 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDzLF-0004s7-CX; Thu, 13 Feb 2014 16:40:49 +0000 Received: from mail-ea0-f171.google.com ([209.85.215.171]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WDzLC-0004rE-88 for linux-arm-kernel@lists.infradead.org; Thu, 13 Feb 2014 16:40:46 +0000 Received: by mail-ea0-f171.google.com with SMTP id f15so5279793eak.30 for ; Thu, 13 Feb 2014 08:40:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SE6yPXRNVYL2HdKoORsqwuhTTaMDrMe2ei2NNdwNFSc=; b=cBS2QvYXhADQcETxVkR1I6D96EFm7EcSahFN/qlH+4AtvNk0EkM+XVXcY26WkaIOsD uE97eql9Eg5+tIBjZqBLrrtuLkearrTFVSIq4J/qvOF3sg8e9dP/J2YHRB55BUyRLyAI 4vpvQ/NlFk+NzAyGhJwAsIdtHKayWzeSB15CwugbZeWAW3YM/86BC97DTV3whhlHDTtO ILGP+H771l3rYfrqYyko9P37Cs+Jo7FzHfb/7bJ/7RFuIwAypCKlju+b0fCrYD66DhUk dPMcBq+WsHQ7WWfGaOvfD0iX7+Tzr+8NnnFgYX/o9bGfyDXdW7grreUeLwVODF7CYvpA mZUg== X-Gm-Message-State: ALoCoQlVNwP7KFJaRLMDmGVMi7o2HFtv0MTNEQDFt4vVQkkIP1jQNBQk0mYsoGEn8joQpYwST+CB X-Received: by 10.15.21.2 with SMTP id c2mr2887455eeu.77.1392309623146; Thu, 13 Feb 2014 08:40:23 -0800 (PST) Received: from localhost ([195.238.93.36]) by mx.google.com with ESMTPSA id m9sm8794510eeh.3.2014.02.13.08.40.21 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 13 Feb 2014 08:40:22 -0800 (PST) From: Semen Protsenko To: , Subject: [PATCH] mfd: vexpress-sysreg: initialize "site" variable Date: Thu, 13 Feb 2014 18:39:54 +0200 Message-Id: <1392309594-28229-1-git-send-email-semen.protsenko@linaro.org> X-Mailer: git-send-email 1.8.5.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140213_114046_401466_B54DF314 X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: Lee Jones , Samuel Ortiz , Pawel Moll X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP "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 --- drivers/mfd/vexpress-sysreg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/vexpress-sysreg.c b/drivers/mfd/vexpress-sysreg.c index 981bef4..35281e8 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];