usb: ehci: Get rid of CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS
authorBin Meng <[email protected]>
Wed, 19 Jul 2017 13:50:05 +0000 (21:50 +0800)
committerMarek Vasut <[email protected]>
Fri, 28 Jul 2017 21:34:23 +0000 (23:34 +0200)
commit99c225568890df8fd224a4944d98599a5b2b721d
treef362a579736cc96a4cb0b51fc60fd7c34b765dcb
parent29313428744112ad8f601c86e29440a386aa6543
usb: ehci: Get rid of CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS

EHC reports supported maximum number of ports in the HCSPARAMS
register, so it's unnecessary to use a hardcoded config option
CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS.

Signed-off-by: Bin Meng <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Tested-by: Stefan Roese <[email protected]>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci.h