USB: UHCI: Move PCI specific functions to uhci-pci.c
authorJan Andersson <jan@gaisler.com>
Fri, 6 May 2011 10:00:15 +0000 (12:00 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 7 May 2011 01:24:00 +0000 (18:24 -0700)
commitc31a65f869f7b8a7039007411c76d7b6f9a63323
treea22bc058d1b343e8ac0734c905465030166dc821
parente4d235d800c8d75750a46331298e3473c10651b2
USB: UHCI: Move PCI specific functions to uhci-pci.c

This patch is part of a series that extend the UHCI HCD to support
non-PCI controllers.

This patch moves PCI specific functions to uhci-pci.c and includes
this file in uhci-hcd.c. It also renames the function uhci_init to
uhci_pci_init.

uhci_init/uhci_pci_init is modified so that the port-detection logic
is kept in a new separate function uhci_count_ports() in uhci-hcd.c.

Signed-off-by: Jan Andersson <jan@gaisler.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/uhci-hcd.c
drivers/usb/host/uhci-pci.c [new file with mode: 0644]