]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: 9187/1: JIVE: fix return value of __setup handler
authorRandy Dunlap <rdunlap@infradead.org>
Sat, 12 Mar 2022 06:36:09 +0000 (07:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Apr 2022 12:15:00 +0000 (14:15 +0200)
commita60d91a09a499d1903a186bb09e2ca99903a35c5
tree122d7d1e8c6705a89a56e5a1098e37c576281b28
parent9b5c435a1275ba09ff58b485fd83f3e0911bbc47
ARM: 9187/1: JIVE: fix return value of __setup handler

[ Upstream commit 8b2360c7157b462c4870d447d1e65d30ef31f9aa ]

__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 jive_mtdset().

Fixes: 9db829f485c5 ("[ARM] JIVE: Initial machine support for Logitech Jive")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Alim Akhtar <alim.akhtar@samsung.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-samsung-soc@vger.kernel.org
Cc: patches@armlinux.org.uk
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-s3c24xx/mach-jive.c