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.

soc/tegra: pmc: Do not rely on global variable

The reset action for changing the suspend mode back on failure can take
a context-specific data argument that can be set to the PMC context in
order to avoid relying on a global variable.

Signed-off-by: Thierry Reding <treding@nvidia.com>

+3 -1
+3 -1
drivers/soc/tegra/pmc.c
··· 2944 2944 2945 2945 static void tegra_pmc_reset_suspend_mode(void *data) 2946 2946 { 2947 + struct tegra_pmc *pmc = data; 2948 + 2947 2949 pmc->suspend_mode = TEGRA_SUSPEND_NOT_READY; 2948 2950 } 2949 2951 ··· 2968 2966 return err; 2969 2967 2970 2968 err = devm_add_action_or_reset(&pdev->dev, tegra_pmc_reset_suspend_mode, 2971 - NULL); 2969 + pmc); 2972 2970 if (err) 2973 2971 return err; 2974 2972