diff options
author | Ben Dooks <ben-linux@fluff.org> | 2009-05-15 14:57:09 +0100 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-05-15 15:13:25 +0100 |
commit | a8af6de00fafed316fea8f39d87c7e8e19ec1ea0 (patch) | |
tree | d1738703ce9f04c1141fb0f6f5b176a259529ffe | |
parent | 871fcd7cf791b853ae044f813db94caefbf66725 (diff) | |
download | op-kernel-dev-a8af6de00fafed316fea8f39d87c7e8e19ec1ea0.zip op-kernel-dev-a8af6de00fafed316fea8f39d87c7e8e19ec1ea0.tar.gz |
[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>
-rw-r--r-- | arch/arm/mach-s3c2410/mach-bast.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c2410/mach-bast.c b/arch/arm/mach-s3c2410/mach-bast.c index 4389c16..8637dea 100644 --- a/arch/arm/mach-s3c2410/mach-bast.c +++ b/arch/arm/mach-s3c2410/mach-bast.c @@ -588,8 +588,6 @@ static void __init bast_map_io(void) s3c_device_nand.dev.platform_data = &bast_nand_info; - s3c_i2c0_set_platdata(&bast_i2c_info); - s3c24xx_init_io(bast_iodesc, ARRAY_SIZE(bast_iodesc)); s3c24xx_init_clocks(0); s3c24xx_init_uarts(bast_uartcfgs, ARRAY_SIZE(bast_uartcfgs)); @@ -602,6 +600,7 @@ static void __init bast_init(void) sysdev_class_register(&bast_pm_sysclass); sysdev_register(&bast_pm_sysdev); + s3c_i2c0_set_platdata(&bast_i2c_info); s3c24xx_fb_set_platdata(&bast_fb_info); platform_add_devices(bast_devices, ARRAY_SIZE(bast_devices)); |