pinctrl: pinctrl-v5.5-2: Fix linker error
Subsystems (3)
cover pinctrl: pinctrl-v5.5-2: Fix linker error
Fix linker error seen with 5.5 linux-next tree caused by below commit 1948d5c51dba ("pinctrl: Add pinmux & GPIO controller driver for a new SoC").
Patch is based on 'pinctrl-v5.5-2' tag of linux-pinctrl.git tree.
Rahul Tanwar (1):
pinctrl: Modify Kconfig to fix linker error
drivers/pinctrl/Kconfig | 1 + 1 file changed, 1 insertion(+)
Signature · 1 line
2.11.0
PATCH 1/1 pinctrl: Modify Kconfig to fix linker error
Fix below linker error
ld: drivers/pinctrl/pinctrl-equilibrium.o: in function `pinconf_generic_dt_node_to_map_all':
pinctrl-equilibrium.c:(.text+0xb): undefined reference to `pinconf_generic_dt_node_to_map'
Caused by below commit
1948d5c51dba ("pinctrl: Add pinmux & GPIO controller driver for a new SoC")
by adding 'depends on OF' in Kconfig driver entry.
--- drivers/pinctrl/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/pinctrl/Kconfig +1 -0
@@ -422,6 +422,7 @@ config PINCTRL_TB10X config PINCTRL_EQUILIBRIUM tristate "Generic pinctrl and GPIO driver for Intel Lightning Mountain SoC" + depends on OF select PINMUX select PINCONF select GPIOLIB
Signature · 1 line
2.11.0
Re: [PATCH 1/1] pinctrl: Modify Kconfig to fix linker error
Quoted 7 lines · Rahul Tanwar
Fix below linker error
ld:
drivers/pinctrl/pinctrl-equilibrium.o: in function `pinconf_generic_dt_node_to_map_all':
pinctrl-equilibrium.c:(.text+0xb): undefined reference to `pinconf_generic_dt_node_to_map'
Quoted 8 lines
Caused by below commit
1948d5c51dba("pinctrl: Add pinmux & GPIO controller driver for a new SoC")by adding 'depends on OF' in
Kconfigdriver entry.Reported-by Randy Dunlap <[email protected]>>Signed-off-by Rahul Tanwar <[email protected]>
Thanks.
Quoted 17 lines
--- drivers/pinctrl/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/pinctrl/Kconfig +1
-0@@ -422,6 +422,7 @@ config PINCTRL_TB10X config PINCTRL_EQUILIBRIUM tristate "Generic pinctrl and GPIO driver for Intel Lightning Mountain SoC" + depends on OF select PINMUX select PINCONF select GPIOLIB
Signature · 1 line
~Randy
Re: [PATCH 1/1] pinctrl: Modify Kconfig to fix linker error
In reply to Rahul TanwarQuoted 7 lines · Rahul Tanwar
Fix below linker error
ld:
drivers/pinctrl/pinctrl-equilibrium.o: in function `pinconf_generic_dt_node_to_map_all':
pinctrl-equilibrium.c:(.text+0xb): undefined reference to `pinconf_generic_dt_node_to_map'
Quoted 8 lines
Caused by below commit
1948d5c51dba("pinctrl: Add pinmux & GPIO controller driver for a new SoC")by adding 'depends on OF' in
Kconfigdriver entry.Reported-by Randy Dunlap <[email protected]>>Signed-off-by Rahul Tanwar <[email protected]>
Patch applied for fixes, thanks!
Linus Walleij