Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

memory: tegra-mc: Drop tegra_mc_setup_latency_allowance() return value

tegra_mc_setup_latency_allowance() only succeeds, thus its return value
can be dropped making code a bit simpler.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/20260226-memory-simplify-v1-2-ccb94f378628@oss.qualcomm.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Krzysztof Kozlowski
2ac5ba4c 8a39b1d4

+2 -8
+2 -8
drivers/memory/tegra/mc.c
··· 386 386 defined(CONFIG_ARCH_TEGRA_124_SOC) || \ 387 387 defined(CONFIG_ARCH_TEGRA_132_SOC) || \ 388 388 defined(CONFIG_ARCH_TEGRA_210_SOC) 389 - static int tegra_mc_setup_latency_allowance(struct tegra_mc *mc) 389 + static void tegra_mc_setup_latency_allowance(struct tegra_mc *mc) 390 390 { 391 391 unsigned long long tick; 392 392 unsigned int i; ··· 414 414 415 415 /* latch new values */ 416 416 mc_writel(mc, MC_TIMING_UPDATE, MC_TIMING_CONTROL); 417 - 418 - return 0; 419 417 } 420 418 421 419 static int load_one_timing(struct tegra_mc *mc, ··· 515 517 /* ensure that debug features are disabled */ 516 518 mc_writel(mc, 0x00000000, MC_TIMING_CONTROL_DBG); 517 519 518 - err = tegra_mc_setup_latency_allowance(mc); 519 - if (err < 0) { 520 - dev_err(mc->dev, "failed to setup latency allowance: %d\n", err); 521 - return err; 522 - } 520 + tegra_mc_setup_latency_allowance(mc); 523 521 524 522 err = tegra_mc_setup_timings(mc); 525 523 if (err < 0) {