diff mbox

[12/26] mfd: ab8500-debugfs: Use NULL to initialise remaining NULL pointer

Message ID 1358254566-12419-13-git-send-email-lee.jones@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Lee Jones Jan. 15, 2013, 12:55 p.m. UTC
Partly for coding style reasons, but mostly because sparse warns on it.

This patch is a completion of a previous patch my Mark Brown.

Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 drivers/mfd/ab8500-debugfs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown Jan. 15, 2013, 1:06 p.m. UTC | #1
On Tue, Jan 15, 2013 at 12:55:52PM +0000, Lee Jones wrote:
> Partly for coding style reasons, but mostly because sparse warns on it.
> 
> This patch is a completion of a previous patch my Mark Brown.

Typo there :)

Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Lee Jones Jan. 15, 2013, 1:49 p.m. UTC | #2
On Tue, 15 Jan 2013, Mark Brown wrote:

> On Tue, Jan 15, 2013 at 12:55:52PM +0000, Lee Jones wrote:
> > Partly for coding style reasons, but mostly because sparse warns on it.
> > 
> > This patch is a completion of a previous patch my Mark Brown.
> 
> Typo there :)

Yes, it should say "patch by my Mark Brown". ;)

> Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Thanks. I'll fixup with the typo.
diff mbox

Patch

diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c
index 03eacf1..4f36907 100644
--- a/drivers/mfd/ab8500-debugfs.c
+++ b/drivers/mfd/ab8500-debugfs.c
@@ -60,7 +60,7 @@  struct ab8500_prcmu_ranges {
 static struct ab8500_prcmu_ranges debug_ranges[AB8500_NUM_BANKS] = {
 	[0x0] = {
 		.num_ranges = 0,
-		.range = 0,
+		.range = NULL,
 	},
 	[AB8500_SYS_CTRL1_BLOCK] = {
 		.num_ranges = 3,