diff options
author | Jonas Bonn <jonas.bonn@gmail.com> | 2008-11-19 17:11:01 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:11:01 +0000 |
commit | bc36163fe957c334c87b3c8ad0816ee9417531d2 (patch) | |
tree | f90d2c64d20a9570efb7ddd839b8af8a9616e7d6 /arch/arm/plat-s3c24xx/neo1973_memconfig.c | |
parent | 2105065cd9220517b7c64a598730c1a53bcce098 (diff) |
Config: Ifdef cleanups
This patch removes a large number of #ifdefs that switch on machine
model. Where applicable, the machine_is_* idiom is favoured; this
mainly makes the code easier to read, but it does have some other
advantages, too.
Signed-off-by: Jonas Bonn <jonas.bonn@gmail.com>
Diffstat (limited to 'arch/arm/plat-s3c24xx/neo1973_memconfig.c')
-rw-r--r-- | arch/arm/plat-s3c24xx/neo1973_memconfig.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/plat-s3c24xx/neo1973_memconfig.c b/arch/arm/plat-s3c24xx/neo1973_memconfig.c index 99e11333c17..6f623f179f3 100644 --- a/arch/arm/plat-s3c24xx/neo1973_memconfig.c +++ b/arch/arm/plat-s3c24xx/neo1973_memconfig.c @@ -140,13 +140,8 @@ static int __init neo1973_memconfig_probe(struct platform_device *pdev) { dev_info(&pdev->dev, "starting\n"); - switch (machine_arch_type) { -#ifdef CONFIG_MACH_NEO1973_GTA01 - case MACH_TYPE_NEO1973_GTA01: + if (machine_is_neo1973_gta01()) { return -EINVAL; -#endif /* CONFIG_MACH_NEO1973_GTA01 */ - default: - break; } return sysfs_create_group(&pdev->dev.kobj, |