]> err.no Git - linux-2.6/commitdiff
plat-orion: make ehci-orion available for all Orion families
authorLennert Buytenhek <buytenh@wantstofly.org>
Thu, 27 Mar 2008 18:51:40 +0000 (14:51 -0400)
committerNicolas Pitre <nico@marvell.com>
Thu, 27 Mar 2008 18:51:40 +0000 (14:51 -0400)
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Reviewed-by: Tzachi Perelstein <tzachi@marvell.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
arch/arm/mach-orion/common.c
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-orion.c
include/asm-arm/arch-orion/platform.h
include/asm-arm/plat-orion/ehci-orion.h [new file with mode: 0644]

index 86d7f7ccfae052a29d306473c28ab1ba8558b63d..1e124b7b0bde199af5363894373a9c99c0bc7e09 100644 (file)
@@ -27,6 +27,7 @@
 #include <asm/arch/hardware.h>
 #include <asm/arch/orion.h>
 #include <asm/arch/platform.h>
+#include <asm/plat-orion/ehci-orion.h>
 #include <asm/plat-orion/time.h>
 #include "common.h"
 
index 46ee7f4c091232f54c16de95e241e5a160ea5e67..85074cb36f38001ac5d4faa8543c8e8bf7eda175 100644 (file)
@@ -1033,7 +1033,7 @@ MODULE_LICENSE ("GPL");
 #define OF_PLATFORM_DRIVER     ehci_hcd_ppc_of_driver
 #endif
 
-#ifdef CONFIG_ARCH_ORION
+#ifdef CONFIG_PLAT_ORION
 #include "ehci-orion.c"
 #define        PLATFORM_DRIVER         ehci_orion_driver
 #endif
index 0f0eb89c8cf3c7ea0e53b9b872ddcb40322ed9cf..d187d03137423dcc562377df7e18f1b20916f4ba 100644 (file)
@@ -12,8 +12,7 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/mbus.h>
-#include <asm/arch/orion.h>
-#include <asm/arch/platform.h>
+#include <asm/plat-orion/ehci-orion.h>
 
 #define rdl(off)       __raw_readl(hcd->regs + (off))
 #define wrl(off, val)  __raw_writel((val), hcd->regs + (off))
index 0e33fe536ef7f9537cfee15abbb48c7276d6b2fc..4e09c6c1af46c9e287f7c923758d2f8184a6b419 100644 (file)
 #ifndef __ASM_ARCH_PLATFORM_H__
 #define __ASM_ARCH_PLATFORM_H__
 
-/*
- * Orion EHCI platform driver data.
- */
-struct orion_ehci_data {
-       struct mbus_dram_target_info    *dram;
-};
-
-
 /*
  * Device bus NAND private data
  */
diff --git a/include/asm-arm/plat-orion/ehci-orion.h b/include/asm-arm/plat-orion/ehci-orion.h
new file mode 100644 (file)
index 0000000..7857056
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * include/asm-arm/plat-orion/ehci-orion.h
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2.  This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+#ifndef __ASM_PLAT_ORION_EHCI_ORION_H
+#define __ASM_PLAT_ORION_EHCI_ORION_H
+
+#include <linux/mbus.h>
+
+struct orion_ehci_data {
+       struct mbus_dram_target_info    *dram;
+};
+
+
+#endif