Commit fa7f314
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 8d11ef2 commit fa7f314
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
1105 | | - | |
| 1105 | + | |
1106 | 1106 | | |
1107 | 1107 | | |
1108 | 1108 | | |
| |||
0 commit comments