]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: ohci: allow platform driver to specify the number of ports
authorFlorian Fainelli <florian@openwrt.org>
Mon, 8 Oct 2012 13:11:26 +0000 (15:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 18:23:59 +0000 (11:23 -0700)
commit2b16e39ee0a431d6cf6e6ca33bb08ec7dc82073f
tree72ed5f93dbf1eba3a07f62c0d08fb30d3094b497
parentf3a958d30dd1ceac83a3b82b5260475c7697d53a
USB: ohci: allow platform driver to specify the number of ports

This patch modifies the ohci platform driver to accept the num_ports
parameter to be set via platform_data. Setting the number of ports must be
done after the call to ohci_hcd_init().

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-platform.c
include/linux/usb/ohci_pdriver.h