usb: otg: Remove one unnecessary I2C read request.
PATCH 2/7 usb: otg: Remove one unnecessary I2C read request.
To get the ID status there was an I2C read transfer. Removed this I2C read transfer as this info can be used from existing variable(linkstat).
Signed-off-by Hema HK <[email protected]>
Cc Felipe Balbi <[email protected]>
--- drivers/usb/otg/twl6030-usb.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/usb/otg/twl6030-usb.c +0 -2
@@ -149,7 +149,6 @@ static int twl6030_set_phy_clk(struct otstatic int twl6030_phy_init (struct otg_transceiver *x) { -u8 hw_state;struct twl6030_usb *twl;struct device *dev;struct twl4030_usb_data *pdata;
@@ -158,9 +157,7 @@ static int twl6030_phy_init(struct otg_t dev = twl->dev; pdata = dev->platform_data; - hw_state =twl6030_readb (twl,TWL6030_MODULE_ID0 ,STS_HW_CONDITIONS );