Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5660778 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown
Browse files

ASoC: cs35l33: Remove unneeded gpiod NULL check



The gpiod API checks for NULL descriptors, so there is no need to
duplicate the check in the driver.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5771a8c0
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -869,7 +869,6 @@ static int __maybe_unused cs35l33_runtime_resume(struct device *dev)

	dev_dbg(dev, "%s\n", __func__);

	if (cs35l33->reset_gpio)
	gpiod_set_value_cansleep(cs35l33->reset_gpio, 0);

	ret = regulator_bulk_enable(cs35l33->num_core_supplies,
@@ -881,7 +880,6 @@ static int __maybe_unused cs35l33_runtime_resume(struct device *dev)

	regcache_cache_only(cs35l33->regmap, false);

	if (cs35l33->reset_gpio)
	gpiod_set_value_cansleep(cs35l33->reset_gpio, 1);

	msleep(CS35L33_BOOT_DELAY);
@@ -1191,7 +1189,6 @@ static int cs35l33_i2c_probe(struct i2c_client *i2c_client,
		return ret;
	}

	if (cs35l33->reset_gpio)
	gpiod_set_value_cansleep(cs35l33->reset_gpio, 1);

	msleep(CS35L33_BOOT_DELAY);
@@ -1262,7 +1259,6 @@ static int cs35l33_i2c_remove(struct i2c_client *client)

	snd_soc_unregister_codec(&client->dev);

	if (cs35l33->reset_gpio)
	gpiod_set_value_cansleep(cs35l33->reset_gpio, 0);

	pm_runtime_disable(&client->dev);