@@ -12,6 +12,7 @@
#include <linux/init.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
+#include <linux/platform_data/cbus.h>
#include <linux/irq.h>
#include <linux/input.h>
#include <linux/clk.h>
@@ -37,7 +38,6 @@
#include <plat/lcd_mipid.h>
#include <plat/mmc.h>
#include <plat/clock.h>
-#include <plat/cbus.h>
#define ADS7846_PENDOWN_GPIO 15
@@ -19,6 +19,7 @@
#include <linux/io.h>
#include <linux/stddef.h>
#include <linux/platform_device.h>
+#include <linux/platform_data/cbus.h>
#include <linux/i2c.h>
#include <linux/spi/spi.h>
#include <linux/usb/musb.h>
@@ -35,7 +36,6 @@
#include <plat/onenand.h>
#include <plat/mmc.h>
#include <plat/serial.h>
-#include <plat/cbus.h>
#include "mux.h"
deleted file mode 100644
@@ -1,40 +0,0 @@
-/*
- * cbus.h - CBUS platform_data definition
- *
- * Copyright (C) 2004 - 2009 Nokia Corporation
- *
- * Written by Felipe Balbi <felipe.balbi@nokia.com>
- *
- * This file is subject to the terms and conditions of the GNU General
- * Public License. See the file "COPYING" in the main directory of this
- * archive for more details.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef __PLAT_CBUS_H
-#define __PLAT_CBUS_H
-
-#define CBUS_RETU_DEVICE_ID 0x01
-#define CBUS_TAHVO_DEVICE_ID 0x02
-
-struct cbus_host_platform_data {
- int dat_gpio;
- int clk_gpio;
- int sel_gpio;
-};
-
-struct cbus_retu_platform_data {
- int irq_base;
- int irq_end;
- int devid;
-};
-
-#endif /* __PLAT_CBUS_H */
@@ -33,8 +33,7 @@
#include <linux/spinlock.h>
#include <linux/gpio.h>
#include <linux/platform_device.h>
-
-#include <plat/cbus.h>
+#include <linux/platform_data/cbus.h>
#include "cbus.h"
@@ -37,6 +37,7 @@
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
+#include <linux/platform_data/cbus.h>
#include <linux/gpio.h>
#include <asm/uaccess.h>
@@ -44,7 +45,6 @@
#include <plat/mux.h>
#include <plat/board.h>
-#include <plat/cbus.h>
#include "cbus.h"
#include "retu.h"
new file mode 100644
@@ -0,0 +1,40 @@
+/*
+ * cbus.h - CBUS platform_data definition
+ *
+ * Copyright (C) 2004 - 2009 Nokia Corporation
+ *
+ * Written by Felipe Balbi <felipe.balbi@nokia.com>
+ *
+ * This file is subject to the terms and conditions of the GNU General
+ * Public License. See the file "COPYING" in the main directory of this
+ * archive for more details.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef __INCLUDE_LINUX_CBUS_H
+#define __INCLUDE_LINUX_CBUS_H
+
+#define CBUS_RETU_DEVICE_ID 0x01
+#define CBUS_TAHVO_DEVICE_ID 0x02
+
+struct cbus_host_platform_data {
+ int dat_gpio;
+ int clk_gpio;
+ int sel_gpio;
+};
+
+struct cbus_retu_platform_data {
+ int irq_base;
+ int irq_end;
+ int devid;
+};
+
+#endif /* __INCLUDE_LINUX_CBUS_H */
it's a much more sensible location for that sort of thing. Signed-off-by: Felipe Balbi <balbi@ti.com> --- arch/arm/mach-omap1/board-nokia770.c | 2 +- arch/arm/mach-omap2/board-n8x0.c | 2 +- arch/arm/plat-omap/include/plat/cbus.h | 40 -------------------------------- drivers/cbus/cbus.c | 3 +- drivers/cbus/retu.c | 2 +- include/linux/platform_data/cbus.h | 40 ++++++++++++++++++++++++++++++++ 6 files changed, 44 insertions(+), 45 deletions(-) delete mode 100644 arch/arm/plat-omap/include/plat/cbus.h create mode 100644 include/linux/platform_data/cbus.h