OSDN Git Service

usb: ohci-platform: use reset array API
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 1 Nov 2017 16:01:59 +0000 (01:01 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Nov 2017 17:22:26 +0000 (18:22 +0100)
commit20a7f3ad6227d193b5cba0876cc1f07a4c5e27c9
treedfe9ff7d685275001c02aced30704401193ffb46
parent8e84f8aa5306bb360edc857b82fc5ac73916f81d
usb: ohci-platform: use reset array API

Generic drivers like this need to control arbitrary number of reset
lines.  Instead of hard-coding the maximum number of resets, use the
reset array API.  It can manage a bunch of resets behind the scene.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-platform.c