memory: omap-gpmc: Drop custom PM calls with cpu_pm notifier
authorTony Lindgren <tony@atomide.com>
Tue, 27 Jul 2021 10:10:34 +0000 (13:10 +0300)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 29 Jul 2021 07:02:27 +0000 (09:02 +0200)
commit77ed5e9dec551765bde9f2e4b7ed9071ff03d61d
tree561fafbd569abf155f547e7f3b74624a640dee09
parent0f78964b523fe9920deae3455324060356ae53d0
memory: omap-gpmc: Drop custom PM calls with cpu_pm notifier

We can now switch over to using cpu_pm instead of custom calls and make
the context save and restore functions static.

Let's also move the save and restore functions to avoid adding forward
declarations for them. And get rid of the static data pointer while at it.

Cc: Roger Quadros <rogerq@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20210727101034.32148-2-tony@atomide.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
arch/arm/mach-omap2/pm34xx.c
drivers/memory/omap-gpmc.c
include/linux/omap-gpmc.h