usb: usb251xb: fix optional reset gpio request
Linux requests the reset gpio optional by using devm_gpiod_get_optional().
We need to do this here too because the reset can be a global shared
reset line e.g. board por. We haven't such a helper so just drop the
final else path.

Fixes: 937fa50d9c ("usb: Port Microchip USB251x USB hub driver from Linux")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent b66b582 commit 19a08eb51fe6fe70ab56de7fa1a3fa1250fa6dd1
@Marco Felsch Marco Felsch authored on 17 Jun 2019
Sascha Hauer committed on 17 Jun 2019
Showing 1 changed file
View
drivers/usb/misc/usb251xb.c