[PATCH 16/16] ARM: spear: move platform_data definitions

Arnd Bergmann arnd at arndb.de
Tue Sep 11 09:02:39 EDT 2012


Platform data for device drivers should be defined in
include/linux/platform_data/*.h, not in the architecture
and platform specific directories.

This moves such data out of the spear include directories

Signed-off-by: Arnd Bergmann <arnd at arndb.de>

Cc: Viresh Kumar <viresh.linux at gmail.com>
Cc: Shiraz Hashim <shiraz.hashim at st.com>
Cc: spear-devel at list.st.com
Cc: Dmitry Torokhov <dmitry.torokhov at gmail.com>
---
 drivers/input/keyboard/spear-keyboard.c                              |    2 +-
 .../plat/keyboard.h => include/linux/platform_data/keyboard-spear.h  |    0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename arch/arm/plat-spear/include/plat/keyboard.h => include/linux/platform_data/keyboard-spear.h (100%)

diff --git a/drivers/input/keyboard/spear-keyboard.c b/drivers/input/keyboard/spear-keyboard.c
index 72ef01b..c7ca97f 100644
--- a/drivers/input/keyboard/spear-keyboard.c
+++ b/drivers/input/keyboard/spear-keyboard.c
@@ -24,7 +24,7 @@
 #include <linux/pm_wakeup.h>
 #include <linux/slab.h>
 #include <linux/types.h>
-#include <plat/keyboard.h>
+#include <linux/platform_data/keyboard-spear.h>
 
 /* Keyboard Registers */
 #define MODE_CTL_REG	0x00
diff --git a/arch/arm/plat-spear/include/plat/keyboard.h b/include/linux/platform_data/keyboard-spear.h
similarity index 100%
rename from arch/arm/plat-spear/include/plat/keyboard.h
rename to include/linux/platform_data/keyboard-spear.h
-- 
1.7.10




More information about the linux-arm-kernel mailing list