iio: adc: rockchip_saradc: explicitly request exclusive reset control
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 19 Jul 2017 15:25:35 +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: Heiko Stuebner <heiko@sntech.de>
Cc: linux-iio@vger.kernel.org
Cc: linux-rockchip@lists.infradead.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/rockchip_saradc.c

index 2bf2ed15a8708bdea4ee11e9210874ef725cf1bc..5f612d694b33184383dc7832243b1fa688cb1eab 100644 (file)
@@ -240,7 +240,8 @@ static int rockchip_saradc_probe(struct platform_device *pdev)
         * The reset should be an optional property, as it should work
         * with old devicetrees as well
         */
-       info->reset = devm_reset_control_get(&pdev->dev, "saradc-apb");
+       info->reset = devm_reset_control_get_exclusive(&pdev->dev,
+                                                      "saradc-apb");
        if (IS_ERR(info->reset)) {
                ret = PTR_ERR(info->reset);
                if (ret != -ENOENT)