RE: [PATCH 04/11] OMAP: mach-omap2: Fix miscellaneous sparse warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Tony Lindgren [mailto:tony@xxxxxxxxxxx] 
> Sent: Friday, September 17, 2010 12:58 AM
> To: G, Manjunath Kondaiah
> Cc: linux-omap@xxxxxxxxxxxxxxx; Menon, Nishanth
> Subject: Re: [PATCH 04/11] OMAP: mach-omap2: Fix 
> miscellaneous sparse warnings
> 
> * G, Manjunath Kondaiah <manjugk@xxxxxx> [100826 13:50]:
> > From: Manjunatha GK <manjugk@xxxxxx>

...

> >  		I2C_BOARD_INFO("s35390a", 0x30),
> > -		.type		= "s35390a",
> >  	},
> >  };
> 
> OK, I2C_BOARD_INFO sets it too.
>   
> > diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c 
> > index 26aeef5..02fd942 100644
> > --- a/arch/arm/mach-omap2/irq.c
> > +++ b/arch/arm/mach-omap2/irq.c
> > @@ -47,7 +47,7 @@ static struct omap_irq_bank {  } __attribute__ 
> > ((aligned(4))) irq_banks[] = {
> >  	{
> >  		/* MPU INTC */
> > -		.base_reg	= 0,
> > +		.base_reg	= (void __iomem *)0,
> >  		.nr_irqs	= 96,
> >  	},
> >  };
> 
> The base_reg line you can remove, the static data area gets 
> zeroed during init.

Ok.

-Manjunath

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux