nvmem: lpc18xx-eeprom: explicitly request exclusive reset control
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 26 Jul 2017 09:34:43 +0000 (11:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 15:33:22 +0000 (17:33 +0200)
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: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Joachim Eastwood <manabian@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/lpc18xx_eeprom.c

index c81ae4c6da74c64714d5da77bc7d53666c286562..6c7e2c424a4e84e340fb380d18a2abb11b0153d8 100644 (file)
@@ -197,7 +197,7 @@ static int lpc18xx_eeprom_probe(struct platform_device *pdev)
                return ret;
        }
 
-       rst = devm_reset_control_get(dev, NULL);
+       rst = devm_reset_control_get_exclusive(dev, NULL);
        if (IS_ERR(rst)) {
                dev_err(dev, "failed to get reset: %ld\n", PTR_ERR(rst));
                ret = PTR_ERR(rst);