usb: dwc2: simplify optional reset handling
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 15 Mar 2017 11:31:53 +0000 (12:31 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 11 Apr 2017 07:58:22 +0000 (10:58 +0300)
commit8ec32c38efa5f9f92b275148ccb247156f0bf04e
tree77690f4ee8aee164a275cfafa62b0347bed83bbc
parent20839dbb7da5ad77e18bb51f5f56221290bc759e
usb: dwc2: simplify optional reset handling

As of commit bb475230b8e5 ("reset: make optional functions really
optional"), the reset framework API calls use NULL pointers to describe
optional, non-present reset controls.

This allows to return errors from devm_reset_control_get_optional and to
call reset_control_(de)assert unconditionally.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/platform.c