[PATCH 3/5] memory: tegra210-emc: Simplify usage of clk_rate_exclusive_get()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



clk_rate_exclusive_get() returns 0 unconditionally. So remove error
handling. This prepares making clk_rate_exclusive_get() return void.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
---
 drivers/memory/tegra/tegra210-emc-core.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/memory/tegra/tegra210-emc-core.c b/drivers/memory/tegra/tegra210-emc-core.c
index 3300bde47c13..957bcaadb24f 100644
--- a/drivers/memory/tegra/tegra210-emc-core.c
+++ b/drivers/memory/tegra/tegra210-emc-core.c
@@ -2001,11 +2001,7 @@ static int __maybe_unused tegra210_emc_suspend(struct device *dev)
 	struct tegra210_emc *emc = dev_get_drvdata(dev);
 	int err;
 
-	err = clk_rate_exclusive_get(emc->clk);
-	if (err < 0) {
-		dev_err(emc->dev, "failed to acquire clock: %d\n", err);
-		return err;
-	}
+	clk_rate_exclusive_get(emc->clk);
 
 	emc->resume_rate = clk_get_rate(emc->clk);
 
-- 
2.42.0





[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux