linux-stable/arch/powerpc/platforms/4xx
Randy Dunlap 5bb99fd409 powerpc/4xx/cpm: Fix return value of __setup() handler
__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
2022-05-04 19:37:47 +10:00
..
cpm.c powerpc/4xx/cpm: Fix return value of __setup() handler 2022-05-04 19:37:47 +10:00
gpio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 333 2019-06-05 17:37:06 +02:00
hsta_msi.c powerpc/4xx/hsta: Rework MSI handling 2021-12-16 22:22:18 +01:00
machine_check.c powerpc: Add esr as a synonym for pt_regs.dsisr 2021-08-26 21:21:06 +10:00
Makefile powerpc/4xx: Remove MSI support which never worked 2021-12-09 11:52:20 +01:00
pci.c powerpc/4xx: Add __init attribute to eligible functions 2021-12-23 22:33:16 +11: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