From: Greg KH To: torvalds@transmeta.com Cc: linux-usb-devel@lists.sourceforge.net Subject: [PATCH 3 of 7] USB makefile changes Hi, Here's a patch against 2.5.2-pre9 that adds the auerswald driver to the usb Makefile, and fixes a problem when the EHCI driver is compiled into the kernel (it needs to be initialized before any other host controller driver.) thanks, greg k-h diff -Nru a/drivers/usb/Makefile b/drivers/usb/Makefile --- a/drivers/usb/Makefile Sun Jan 6 12:18:36 2002 +++ b/drivers/usb/Makefile Sun Jan 6 12:18:36 2002 @@ -40,6 +40,12 @@ # Each configuration option enables a list of files. obj-$(CONFIG_USB) += usbcore.o + +# EHCI needs to be linked before the other HCD drivers +ifeq ($(CONFIG_USB_EHCI_HCD),y) + obj-y += hcd/ehci-hcd.o +endif + obj-$(CONFIG_USB_UHCI) += usb-uhci.o obj-$(CONFIG_USB_UHCI_ALT) += uhci.o obj-$(CONFIG_USB_OHCI) += usb-ohci.o @@ -73,6 +79,7 @@ obj-$(CONFIG_USB_HPUSBSCSI) += hpusbscsi.o obj-$(CONFIG_USB_BLUETOOTH) += bluetooth.o obj-$(CONFIG_USB_USBNET) += usbnet.o +obj-$(CONFIG_USB_AUERSWALD) += auerswald.o # Object files in subdirectories mod-subdirs := serial hcd @@ -80,10 +87,6 @@ subdir-$(CONFIG_USB_EHCI_HCD) += hcd subdir-$(CONFIG_USB_SERIAL) += serial subdir-$(CONFIG_USB_STORAGE) += storage - -ifeq ($(CONFIG_USB_EHCI_HCD),y) - obj-y += hcd/ehci-hcd.o -endif ifeq ($(CONFIG_USB_SERIAL),y) obj-y += serial/usb-serial.o