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: Use contextual data instead of global variable

Pass the driver-specific data via the syscore struct and use it in the
syscore ops.

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

+4
+4
drivers/soc/tegra/pmc.c
··· 3192 3192 3193 3193 static void tegra186_pmc_wake_syscore_resume(void *data) 3194 3194 { 3195 + struct tegra_pmc *pmc = data; 3195 3196 unsigned int i; 3196 3197 u32 mask; 3197 3198 ··· 3207 3206 3208 3207 static int tegra186_pmc_wake_syscore_suspend(void *data) 3209 3208 { 3209 + struct tegra_pmc *pmc = data; 3210 3210 unsigned int i; 3211 3211 3212 3212 /* Check if there are unhandled wake IRQs */ ··· 3216 3214 dev_warn(pmc->dev, 3217 3215 "Unhandled wake IRQs pending vector[%u]: 0x%x\n", 3218 3216 i, pmc->wake_status[i]); 3217 + 3219 3218 wke_read_sw_wake_status(pmc); 3220 3219 3221 3220 /* flip the wakeup trigger for dual-edge triggered pads ··· 3890 3887 static void tegra186_pmc_init(struct tegra_pmc *pmc) 3891 3888 { 3892 3889 pmc->syscore.ops = &tegra186_pmc_wake_syscore_ops; 3890 + pmc->syscore.data = pmc; 3893 3891 register_syscore(&pmc->syscore); 3894 3892 } 3895 3893