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: 24603 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B04F3202E2 for ; Thu, 13 Feb 2014 16:40:34 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id i4sf44715729oah.7 for ; Thu, 13 Feb 2014 08:40:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=o0tpZf6uVt+GFNgtmjO/of6XJyYPXI7cWQkFK2gZyJg=; b=FTHJPwgmG3aE9yeAtTenPofyFFXJvdxxRT+KQGGG6ixRuosYv7StkVKxu2sjDvt7aO MkCBwp5xcWFMEw8pHxspdFuNNq5K45YLCtOrUkMApbG6Sppf9FwGbbr2Fs34iJppO181 FRsrknewlIdcZ683uSaG84YxW3u713BhuVwuM8gTgU3OZXw3wF8E65/fpm6seZsz17bt e1InOUFHkGw6ubdUWHmHlAZdn06I/+9X7rCyFWUA/7+VT5xocAdwRdlxKQOY+d0+d9Xx NG4j8RcQO3SmHiyIG0nul5GSZrvMR+6YvuTXoGesw6UT4DgKXG5sSEOvK2ShWkdzBITB D83g== X-Gm-Message-State: ALoCoQmNhz3RE0aIhxu1O0fE0EwPdBPr2H+QCdxVm2pyM90+YBeBQvJcXox1+CwUqgTqFtmIC2ei X-Received: by 10.182.66.73 with SMTP id d9mr877361obt.8.1392309633665; Thu, 13 Feb 2014 08:40:33 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.51.130 with SMTP id u2ls2206942qga.34.gmail; Thu, 13 Feb 2014 08:40:33 -0800 (PST) X-Received: by 10.52.179.198 with SMTP id di6mr1274341vdc.7.1392309633538; Thu, 13 Feb 2014 08:40:33 -0800 (PST) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id z15si835719vce.72.2014.02.13.08.40.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 08:40:33 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id jz11so8592779veb.36 for ; Thu, 13 Feb 2014 08:40:33 -0800 (PST) X-Received: by 10.221.29.137 with SMTP id ry9mr1538078vcb.6.1392309633440; Thu, 13 Feb 2014 08:40:33 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp39313vcz; Thu, 13 Feb 2014 08:40:32 -0800 (PST) X-Received: by 10.68.194.65 with SMTP id hu1mr2868591pbc.158.1392309632419; Thu, 13 Feb 2014 08:40:32 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sz7si2594487pab.319.2014.02.13.08.40.31; Thu, 13 Feb 2014 08:40:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752254AbaBMQkZ (ORCPT + 27 others); Thu, 13 Feb 2014 11:40:25 -0500 Received: from mail-ee0-f43.google.com ([74.125.83.43]:46401 "EHLO mail-ee0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751516AbaBMQkY (ORCPT ); Thu, 13 Feb 2014 11:40:24 -0500 Received: by mail-ee0-f43.google.com with SMTP id c41so5164493eek.30 for ; Thu, 13 Feb 2014 08:40:23 -0800 (PST) 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: , Cc: Samuel Ortiz , Lee Jones , Pawel Moll 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: semen.protsenko@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , "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];