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

powerpc/platforms/83xx/suspend: Remove write-only global variable

pmc_dev is only assigned in .probe(), otherwise the variable is unused.
So drop this pointer that serves no purpose.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220707061441.193869-3-u.kleine-koenig@pengutronix.de

authored by

Uwe Kleine-König and committed by
Michael Ellerman
95b002e4 ccc1439b

-2
-2
arch/powerpc/platforms/83xx/suspend.c
··· 100 100 int has_deep_sleep; 101 101 }; 102 102 103 - static struct platform_device *pmc_dev; 104 103 static int has_deep_sleep, deep_sleeping; 105 104 static int pmc_irq; 106 105 static struct mpc83xx_pmc __iomem *pmc_regs; ··· 355 356 356 357 has_deep_sleep = type->has_deep_sleep; 357 358 immrbase = get_immrbase(); 358 - pmc_dev = ofdev; 359 359 360 360 is_pci_agent = mpc83xx_is_pci_agent(); 361 361 if (is_pci_agent < 0)