[ARM] S3C2410: mach-bast.c registering i2c data too early
commita8af6de00fafed316fea8f39d87c7e8e19ec1ea0
authorBen Dooks <ben-linux@fluff.org>
Fri, 15 May 2009 13:57:09 +0000 (15 14:57 +0100)
committerBen Dooks <ben-linux@fluff.org>
Fri, 15 May 2009 14:13:25 +0000 (15 15:13 +0100)
treed1738703ce9f04c1141fb0f6f5b176a259529ffe
parent871fcd7cf791b853ae044f813db94caefbf66725
[ARM] S3C2410: mach-bast.c registering i2c data too early

The BAST support code is calling s3c_i2c0_set_platdata() from
the map_io() entry, instead of the bast_init() code. This causes
the registration to fail due to kmalloc() not being available
at the time.

This fixes the following error:
s3c_i2c0_set_platdata: no memory for platform data

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-s3c2410/mach-bast.c