ehci: fix ppc build
Subsystems (2)
PATCH 1/1 ehci: fix ppc build
Currently, this setup:CONFIG_USB_ARCH_HAS_EHCI=yCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_HCD_PPC_OF=y
Will fail to build:
CC drivers/usb/host/ehci-hcd.odrivers/usb/host/ehci-hcd.c:1018:2: error: #error "missing bus glue for ehci-hcd" make[3]: *** [drivers/usb/host/ehci-hcd.o] Error 1
ehci-hcd.c actually contains OF_PLATFORM_DRIVER glue, so error is bogus.
--- drivers/usb/host/ehci-hcd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/host/ehci-hcd.c +1 -1
@@ -1014,7 +1014,7 @@ MODULE_LICENSE ("GPL");#endif #if !defined(PCI_DRIVER ) && !defined(PLATFORM_DRIVER ) && \ - !defined(PS3_SYSTEM_BUS_DRIVER ) + !defined(PS3_SYSTEM_BUS_DRIVER ) && !defined(OF_PLATFORM_DRIVER )#error "missing bus glue for ehci-hcd"#endif
Signature · 1 line
1.5.2.2
Quoted 12 lines
From [email protected] Thu Feb 21 11:49:48 2008
Date: Thu, 21 Feb 2008 22:49:13 +0300
From: Anton Vorontsov <[email protected]>
To: [email protected]
Cc: [email protected], [email protected]
Subject: [PATCH] [USB POWERPC] ehci: fix ppc buildCurrently, this setup:
CONFIG_USB_ARCH_HAS_EHCI=yCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_HCD_PPC_OF=y
Quoted 8 lines
Will fail to build:
CCdrivers/usb/host/ehci-hcd.odrivers/usb/host/ehci-hcd.c:1018:2: error: #error "missing bus glue for ehci-hcd" make[3]: *** [drivers/usb/host/ehci-hcd.o] Error 1
ehci-hcd.cactually containsOF_PLATFORM_DRIVERglue, so error is bogus.Signed-off-by Anton Vorontsov <[email protected]>
... for 2.6.25 ...
Quoted 20 lines
--- drivers/usb/host/ehci-hcd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/usb/host/ehci-hcd.c +1
-1@@ -1014,7 +1014,7 @@ MODULE_LICENSE ("GPL");#endif #if !defined(PCI_DRIVER ) && !defined(PLATFORM_DRIVER ) && \ - !defined(PS3_SYSTEM_BUS_DRIVER ) + !defined(PS3_SYSTEM_BUS_DRIVER ) && !defined(OF_PLATFORM_DRIVER )#error "missing bus glue for ehci-hcd"#endif Signature · 1 line
1.5.2.2