[PATCH] ARM OMAP: use SZ_*M constants in RAM device register functions

Sascha Hauer s.hauer at pengutronix.de
Wed Jan 30 16:22:42 EST 2013


On Mon, Jan 28, 2013 at 01:29:18PM +0400, Antony Pavlov wrote:
> ping

Applied now.

Sascha

> 
> On 24 January 2013 22:55, Antony Pavlov <antonynpavlov at gmail.com> wrote:
> > Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
> > ---
> >  arch/arm/boards/beaglebone/board.c  |    2 +-
> >  arch/arm/boards/omap343xdsp/board.c |    2 +-
> >  2 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/arch/arm/boards/beaglebone/board.c b/arch/arm/boards/beaglebone/board.c
> > index 830ff47..fda8031 100644
> > --- a/arch/arm/boards/beaglebone/board.c
> > +++ b/arch/arm/boards/beaglebone/board.c
> > @@ -311,7 +311,7 @@ console_initcall(beaglebone_console_init);
> >
> >  static int beaglebone_mem_init(void)
> >  {
> > -       omap_add_ram0(256 * 1024 * 1024);
> > +       omap_add_ram0(SZ_256M);
> >
> >         return 0;
> >  }
> > diff --git a/arch/arm/boards/omap343xdsp/board.c b/arch/arm/boards/omap343xdsp/board.c
> > index 6dbbc4c..d894104 100644
> > --- a/arch/arm/boards/omap343xdsp/board.c
> > +++ b/arch/arm/boards/omap343xdsp/board.c
> > @@ -620,7 +620,7 @@ console_initcall(sdp3430_console_init);
> >
> >  static int sdp3430_mem_init(void)
> >  {
> > -       omap_add_ram0(128 * 1024 * 1024);
> > +       omap_add_ram0(SZ_128M);
> >
> >         return 0;
> >  }
> > --
> > 1.7.10.4
> >
> 
> 
> 
> -- 
> Best regards,
>   Antony Pavlov
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list