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

Commit 0ec80c29 authored by Ulf Hansson's avatar Ulf Hansson Committed by Wolfram Sang
Browse files

i2c: nomadik: Remove redundant call to pm_runtime_disable



The amba bus are responsible for pm_runtime_enable|disable, remove the
redundant pm_runtime_disable at driver removal.

Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 9b2b98a3
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1074,7 +1074,6 @@ static int nmk_i2c_remove(struct amba_device *adev)
	i2c_clr_bit(dev->virtbase + I2C_CR, I2C_CR_PE);
	i2c_clr_bit(dev->virtbase + I2C_CR, I2C_CR_PE);
	if (res)
	if (res)
		release_mem_region(res->start, resource_size(res));
		release_mem_region(res->start, resource_size(res));
	pm_runtime_disable(&adev->dev);


	return 0;
	return 0;
}
}