WSL2-Linux-Kernel/arch/powerpc/platforms/4xx
Randy Dunlap 4237eb9bdf powerpc/4xx/cpm: Fix return value of __setup() handler
[ Upstream commit 5bb99fd409 ]

__setup() handlers should return 1 to obsolete_checksetup() in
init/main.c to indicate that the boot option has been handled.

A return of 0 causes the boot option/value to be listed as an Unknown
kernel parameter and added to init's (limited) argument or environment
strings.

Also, error return codes don't mean anything to obsolete_checksetup() --
only non-zero (usually 1) or zero. So return 1 from cpm_powersave_off().

Fixes: d164f6d4f9 ("powerpc/4xx: Add suspend and idle support")
Reported-by: Igor Zhbanov <izh1979@gmail.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220502192941.20955-1-rdunlap@infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:23:10 +02:00
..
Makefile powerpc: remove the ppc44x ocm.c file 2019-08-27 13:03:33 +10:00
cpm.c powerpc/4xx/cpm: Fix return value of __setup() handler 2022-06-09 10:23:10 +02:00
gpio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333 2019-06-05 17:37:06 +02:00
hsta_msi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
machine_check.c powerpc: Add esr as a synonym for pt_regs.dsisr 2021-08-26 21:21:06 +10:00
msi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
pci.c powerpc/4xx: Don't unmap NULL mbase 2020-05-28 23:24:36 +10:00
pci.h
soc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
uic.c powerpc: Bulk conversion to generic_handle_domain_irq() 2021-08-10 23:15:02 +10:00