From: Tony Lindgren Date: Mon, 17 Sep 2012 23:26:10 +0000 (-0700) Subject: mfd: Fix compile for twl-core.c by removing cpu_is_omap usage X-Git-Tag: cleanup-fixes-for-v3.7~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=defa6be1c8216ed2d52d65db81a8a148e73be5f7;p=pandora-kernel.git mfd: Fix compile for twl-core.c by removing cpu_is_omap usage Commit 7d7e1eba (ARM: OMAP2+: Prepare for irqs.h removal) broke compile for non-omap as include plat/cpu.h was added. This header was indirectly included earlier when SPARSE_IRQ was not set, but does not exist on most platforms. Fix the problem by removing the cpu_is_omap usage that should not exist in drivers at all. We can do this by adding proper clock aliases for the twl-core.c drivers, and drop separate handling for cases when clock framework is not available as the behaviour will stay the same. Note that we need to add a platform device to avoid using the i2c provided names that may be different on various omaps. Reported-by: Fengguang Wu Reported-by: Stephen Rothwell Cc: Paul Walmsley Acked-by: Samuel Ortiz Acked-by: Arnd Bergmann Cc: Olof Johansson Cc: Felipe Balbi Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed