phy: phy-stih407-usb: Use explicit reset_control_get_exclusive() API
authorLee Jones <lee.jones@linaro.org>
Tue, 28 Jun 2016 08:33:55 +0000 (09:33 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 1 Jul 2016 09:52:09 +0000 (10:52 +0100)
We're making all reset line users specify whether their lines are
shared with other IP or they operate them exclusively.  In this case
the line is exclusively used only by this IP, so use the *_exclusive()
API accordingly.

Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/phy/phy-stih407-usb.c

index 53cf8d1b411615526ea5310b5fc2500ef2d8b14e..b1f44ab669fb5cef099a54daf07eeb26f76fc770 100644 (file)
@@ -111,7 +111,7 @@ static int stih407_usb2_picophy_probe(struct platform_device *pdev)
                return PTR_ERR(phy_dev->rstc);
        }
 
-       phy_dev->rstport = devm_reset_control_get(dev, "port");
+       phy_dev->rstport = devm_reset_control_get_exclusive(dev, "port");
        if (IS_ERR(phy_dev->rstport)) {
                dev_err(dev, "failed to ctrl picoPHY reset\n");
                return PTR_ERR(phy_dev->rstport);