diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-02-13 23:08:18 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-02-14 15:04:40 +0100 |
commit | b2dc0c2b7a84864fdbad2e264ce9b5c7068a0a0f (patch) | |
tree | 0a109293ee8523d19dfdbfed21945dd4285b3345 /arch/arm/mach-omap2/omap-wakeupgen.c | |
parent | 81c724abb92c2c083b5558f1fdfeb8d9be1767b1 (diff) | |
download | op-kernel-dev-b2dc0c2b7a84864fdbad2e264ce9b5c7068a0a0f.zip op-kernel-dev-b2dc0c2b7a84864fdbad2e264ce9b5c7068a0a0f.tar.gz |
ARM: s3c: i2c: add platform_device forward declaration
A recent cleanup to the mach-osiris.c file is causing build errors
because the i2c-s3c2410.h header file is included before we see
the definition for platform_device. The fix is to make the header file
more robust against inclusion from other places. While this should
normally go through the i2c tree, the bug only exists in arm-soc
at the moment, so it's easier to fix it there before it goes upstream.
Without this patch, building s3c2410_defconfig results in:
arch/arm/mach-s3c24xx/mach-osiris.c:34:0:
include/linux/platform_data/i2c-s3c2410.h:37:26: warning: 'struct platform_device' declared inside parameter list [enabled by default]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: linux-i2c@vger.kernel.org
Cc: Wolfram Sang <w.sang@pengutronix.de>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap-wakeupgen.c')
0 files changed, 0 insertions, 0 deletions