From: Fabio Estevam Date: Tue, 3 Feb 2015 21:18:17 +0000 (-0200) Subject: usb: phy: phy-generic: No need to call gpiod_direction_output() twice X-Git-Tag: omap-for-v4.2/o2_dc~157^2~55^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=168bdb88c3ab1f66c061a6220c18939ef20ba42e;p=pandora-kernel.git usb: phy: phy-generic: No need to call gpiod_direction_output() twice Commit 9eb0797722895f4309b4 ("usb: phy: generic: fix the gpios to be optional") calls gpiod_direction_output() in the probe function, so there is no need to call it again, as we can simply call gpiod_set_value() directly. Also, in usb_gen_phy_shutdown() we can simply put the GPIO directly in its active level state and this allows us to simplify the nop_reset function to treat only the reset case. Signed-off-by: Fabio Estevam Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed