iio: dac: stm32-dac-core: explicitly request exclusive reset control
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 19 Jul 2017 15:25:36 +0000 (17:25 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 20 Aug 2017 14:41:18 +0000 (15:41 +0100)
Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting
reset lines") started to transition the reset control request API calls
to explicitly state whether the driver needs exclusive or shared reset
control behavior. Convert all drivers requesting exclusive resets to the
explicit API call so the temporary transition helpers can be removed.

No functional changes.

Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Hartmut Knaack <knaack.h@gmx.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: linux-iio@vger.kernel.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/stm32-dac-core.c

index 32701be71cf7b47218b4c2adda9f2797f30179b5..55026fe1c6102fdfd6550e6af67879b34a873ca1 100644 (file)
@@ -125,7 +125,7 @@ static int stm32_dac_probe(struct platform_device *pdev)
                goto err_vref;
        }
 
-       priv->rst = devm_reset_control_get(dev, NULL);
+       priv->rst = devm_reset_control_get_exclusive(dev, NULL);
        if (!IS_ERR(priv->rst)) {
                reset_control_assert(priv->rst);
                udelay(2);