Commit 4e9daaca authored by Axel Lin's avatar Axel Lin Committed by Samuel Ortiz

mfd: Use gpio_request_one from omap-usb-host

Use gpio_request_one() instead of multiple gpiolib calls.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 97f2bf51
...@@ -715,19 +715,13 @@ static int usbhs_enable(struct device *dev) ...@@ -715,19 +715,13 @@ static int usbhs_enable(struct device *dev)
clk_enable(omap->usbtll_ick); clk_enable(omap->usbtll_ick);
if (pdata->ehci_data->phy_reset) { if (pdata->ehci_data->phy_reset) {
if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[0])) { if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[0]))
gpio_request(pdata->ehci_data->reset_gpio_port[0], gpio_request_one(pdata->ehci_data->reset_gpio_port[0],
"USB1 PHY reset"); GPIOF_OUT_INIT_LOW, "USB1 PHY reset");
gpio_direction_output
(pdata->ehci_data->reset_gpio_port[0], 0);
}
if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1])) { if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1]))
gpio_request(pdata->ehci_data->reset_gpio_port[1], gpio_request_one(pdata->ehci_data->reset_gpio_port[1],
"USB2 PHY reset"); GPIOF_OUT_INIT_LOW, "USB2 PHY reset");
gpio_direction_output
(pdata->ehci_data->reset_gpio_port[1], 0);
}
/* Hold the PHY in RESET for enough time till DIR is high */ /* Hold the PHY in RESET for enough time till DIR is high */
udelay(10); udelay(10);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment