Commit f58c91b
committed
fixup! gpiolib: Override gpiochip numbers with DT aliases
Commit [1] shuffled the initialisation of gpiochips, breaking the
downstream patch that sets the chip numbers based on DT aliases.
Fix the downstream patch by determining the of_node on the fly, rather
than assuming it has already been set. This does result in more calls to
gpiochip_choose_fwnode() than are necessary, but it reduces the scope of
the patch and makes it more resilient.
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
[1] 16fdabe ("gpio: Fix resource leaks on errors in
gpiochip_add_data_with_key()")1 parent 216bde1 commit f58c91b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | | - | |
| 1095 | + | |
1096 | 1096 | | |
1097 | 1097 | | |
1098 | 1098 | | |
| |||
0 commit comments