From: semen.protsenko@linaro.org (Semen Protsenko)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] mfd: vexpress-sysreg: initialize "site" variable
Date: Thu, 13 Feb 2014 18:39:54 +0200 [thread overview]
Message-ID: <1392309594-28229-1-git-send-email-semen.protsenko@linaro.org> (raw)
"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>
---
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];
--
1.8.5.3
WARNING: multiple messages have this Message-ID (diff)
From: Semen Protsenko <semen.protsenko@linaro.org>
To: <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>,
Lee Jones <lee.jones@linaro.org>, Pawel Moll <pawel.moll@arm.com>
Subject: [PATCH] mfd: vexpress-sysreg: initialize "site" variable
Date: Thu, 13 Feb 2014 18:39:54 +0200 [thread overview]
Message-ID: <1392309594-28229-1-git-send-email-semen.protsenko@linaro.org> (raw)
"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>
---
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];
--
1.8.5.3
next reply other threads:[~2014-02-13 16:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-13 16:39 Semen Protsenko [this message]
2014-02-13 16:39 ` [PATCH] mfd: vexpress-sysreg: initialize "site" variable Semen Protsenko
2014-02-14 9:26 ` Lee Jones
2014-02-14 9:26 ` Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1392309594-28229-1-git-send-email-semen.protsenko@linaro.org \
--to=semen.protsenko@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.