linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: fabio.baltieri@linaro.org (Fabio Baltieri)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/5] mfd: abx500-core: fix sparse warning
Date: Fri, 26 Apr 2013 14:17:14 +0200	[thread overview]
Message-ID: <1366978638-967-2-git-send-email-fabio.baltieri@linaro.org> (raw)
In-Reply-To: <1366978638-967-1-git-send-email-fabio.baltieri@linaro.org>

Fix sparse warning:

drivers/mfd/abx500-core.c:159:38: warning: Using plain integer as NULL pointer

Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
---
 drivers/mfd/abx500-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/abx500-core.c b/drivers/mfd/abx500-core.c
index 9818afb..3714acb 100644
--- a/drivers/mfd/abx500-core.c
+++ b/drivers/mfd/abx500-core.c
@@ -156,7 +156,7 @@ EXPORT_SYMBOL(abx500_startup_irq_enabled);
 void abx500_dump_all_banks(void)
 {
 	struct abx500_ops *ops;
-	struct device dummy_child = {0};
+	struct device dummy_child = {NULL};
 	struct abx500_device_entry *dev_entry;
 
 	list_for_each_entry(dev_entry, &abx500_list, list) {
-- 
1.8.1.3

  reply	other threads:[~2013-04-26 12:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-26 12:17 [PATCH 0/5] various ab8500 fixes Fabio Baltieri
2013-04-26 12:17 ` Fabio Baltieri [this message]
2013-04-26 12:17 ` [PATCH 2/5] mfd: ab8500-sysctrl: fix sparse warning Fabio Baltieri
2013-04-26 12:17 ` [PATCH 3/5] mfd: ab8500: drop references to ab8500-leds Fabio Baltieri
2013-04-26 12:17 ` [PATCH 4/5] mfd: ab8500-sysctrl: set sysctrl_dev during probe Fabio Baltieri
2013-04-26 12:17 ` [PATCH 5/5] mfd: ab8500-sysctrl: let sysctrl driver work without pdata Fabio Baltieri
2013-05-02 12:34 ` [PATCH 0/5] various ab8500 fixes Linus Walleij
2013-05-03  8:01 ` 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=1366978638-967-2-git-send-email-fabio.baltieri@linaro.org \
    --to=fabio.baltieri@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).