diff mbox series

[37/47] usb: host: remove tilegx platform glue

Message ID 20180314153603.3127932-38-arnd@arndb.de
State New
Headers show
Series [01/47] edac: remove tile driver | expand

Commit Message

Arnd Bergmann March 14, 2018, 3:35 p.m. UTC
The tile architecture is getting removed, so the ehci and ohci platform
glue drivers are no longer needed. In case of ohci, this is the last
one to define a PLATFORM_DRIVER macro, so we can remove even more.

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

---
 drivers/usb/host/ehci-hcd.c    |   5 -
 drivers/usb/host/ehci-tilegx.c | 207 -----------------------------------------
 drivers/usb/host/ohci-hcd.c    |  18 ----
 drivers/usb/host/ohci-tilegx.c | 196 --------------------------------------
 include/linux/usb/tilegx.h     |  35 -------
 5 files changed, 461 deletions(-)
 delete mode 100644 drivers/usb/host/ehci-tilegx.c
 delete mode 100644 drivers/usb/host/ohci-tilegx.c
 delete mode 100644 include/linux/usb/tilegx.h

diff --git a/drivers/usb/host/ohci-tilegx.c b/drivers/usb/host/ohci-tilegx.c
deleted file mode 100644
index d21ca3ce9a30..000000000000
diff --git a/include/linux/usb/tilegx.h b/include/linux/usb/tilegx.h
deleted file mode 100644
index 817908573fe8..000000000000
-- 
2.9.0

Comments

Greg Kroah-Hartman March 14, 2018, 4:33 p.m. UTC | #1
On Wed, Mar 14, 2018 at 04:35:50PM +0100, Arnd Bergmann wrote:
> The tile architecture is getting removed, so the ehci and ohci platform

> glue drivers are no longer needed. In case of ohci, this is the last

> one to define a PLATFORM_DRIVER macro, so we can remove even more.

> 

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

> ---

>  drivers/usb/host/ehci-hcd.c    |   5 -

>  drivers/usb/host/ehci-tilegx.c | 207 -----------------------------------------

>  drivers/usb/host/ohci-hcd.c    |  18 ----

>  drivers/usb/host/ohci-tilegx.c | 196 --------------------------------------

>  include/linux/usb/tilegx.h     |  35 -------

>  5 files changed, 461 deletions(-)

>  delete mode 100644 drivers/usb/host/ehci-tilegx.c

>  delete mode 100644 drivers/usb/host/ohci-tilegx.c

>  delete mode 100644 include/linux/usb/tilegx.h


Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Alan Stern March 14, 2018, 4:44 p.m. UTC | #2
On Wed, 14 Mar 2018, Greg Kroah-Hartman wrote:

> On Wed, Mar 14, 2018 at 04:35:50PM +0100, Arnd Bergmann wrote:

> > The tile architecture is getting removed, so the ehci and ohci platform

> > glue drivers are no longer needed. In case of ohci, this is the last

> > one to define a PLATFORM_DRIVER macro, so we can remove even more.

> > 

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

> > ---

> >  drivers/usb/host/ehci-hcd.c    |   5 -

> >  drivers/usb/host/ehci-tilegx.c | 207 -----------------------------------------

> >  drivers/usb/host/ohci-hcd.c    |  18 ----

> >  drivers/usb/host/ohci-tilegx.c | 196 --------------------------------------

> >  include/linux/usb/tilegx.h     |  35 -------

> >  5 files changed, 461 deletions(-)

> >  delete mode 100644 drivers/usb/host/ehci-tilegx.c

> >  delete mode 100644 drivers/usb/host/ohci-tilegx.c

> >  delete mode 100644 include/linux/usb/tilegx.h

> 

> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>


Acked-by: Alan Stern <stern@rowland.harvard.edu>
diff mbox series

Patch

diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 7f0737449df7..d927adf3afcd 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -1275,11 +1275,6 @@  MODULE_LICENSE ("GPL");
 #define XILINX_OF_PLATFORM_DRIVER	ehci_hcd_xilinx_of_driver
 #endif
 
-#ifdef CONFIG_TILE_USB
-#include "ehci-tilegx.c"
-#define	PLATFORM_DRIVER		ehci_hcd_tilegx_driver
-#endif
-
 #ifdef CONFIG_USB_EHCI_HCD_PMC_MSP
 #include "ehci-pmcmsp.c"
 #define	PLATFORM_DRIVER		ehci_hcd_msp_driver
diff --git a/drivers/usb/host/ehci-tilegx.c b/drivers/usb/host/ehci-tilegx.c
deleted file mode 100644
index 610ed437ed2c..000000000000
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 84f88fa411cd..199f1b7a91a3 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -1244,11 +1244,6 @@  MODULE_LICENSE ("GPL");
 #define TMIO_OHCI_DRIVER	ohci_hcd_tmio_driver
 #endif
 
-#ifdef CONFIG_TILE_USB
-#include "ohci-tilegx.c"
-#define PLATFORM_DRIVER		ohci_hcd_tilegx_driver
-#endif
-
 static int __init ohci_hcd_mod_init(void)
 {
 	int retval = 0;
@@ -1273,12 +1268,6 @@  static int __init ohci_hcd_mod_init(void)
 		goto error_ps3;
 #endif
 
-#ifdef PLATFORM_DRIVER
-	retval = platform_driver_register(&PLATFORM_DRIVER);
-	if (retval < 0)
-		goto error_platform;
-#endif
-
 #ifdef OF_PLATFORM_DRIVER
 	retval = platform_driver_register(&OF_PLATFORM_DRIVER);
 	if (retval < 0)
@@ -1322,10 +1311,6 @@  static int __init ohci_hcd_mod_init(void)
 	platform_driver_unregister(&OF_PLATFORM_DRIVER);
  error_of_platform:
 #endif
-#ifdef PLATFORM_DRIVER
-	platform_driver_unregister(&PLATFORM_DRIVER);
- error_platform:
-#endif
 #ifdef PS3_SYSTEM_BUS_DRIVER
 	ps3_ohci_driver_unregister(&PS3_SYSTEM_BUS_DRIVER);
  error_ps3:
@@ -1353,9 +1338,6 @@  static void __exit ohci_hcd_mod_exit(void)
 #ifdef OF_PLATFORM_DRIVER
 	platform_driver_unregister(&OF_PLATFORM_DRIVER);
 #endif
-#ifdef PLATFORM_DRIVER
-	platform_driver_unregister(&PLATFORM_DRIVER);
-#endif
 #ifdef PS3_SYSTEM_BUS_DRIVER
 	ps3_ohci_driver_unregister(&PS3_SYSTEM_BUS_DRIVER);
 #endif