]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: orion5x: fix d2net gpio initialization
authorArnd Bergmann <arnd@arndb.de>
Tue, 16 May 2023 15:31:05 +0000 (17:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 09:33:42 +0000 (11:33 +0200)
commitf175f567b7e96754b489bf9f5b935b1be4490111
tree6da85cd7d236790a5447b846b0496ee160962e88
parent365f318da7384cbac5de6b9c098914888a4d63e7
ARM: orion5x: fix d2net gpio initialization

commit f8ef1233939495c405a9faa4bd1ae7d3f581bae4 upstream.

The DT version of this board has a custom file with the gpio
device. However, it does nothing because the d2net_init()
has no caller or prototype:

arch/arm/mach-orion5x/board-d2net.c:101:13: error: no previous prototype for 'd2net_init'

Call it from the board-dt file as intended.

Fixes: 94b0bd366e36 ("ARM: orion5x: convert d2net to Device Tree")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230516153109.514251-10-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-orion5x/board-dt.c
arch/arm/mach-orion5x/common.h