Commit 48505a85892dfef6c8a4ea02c5b518ac3e9d5378
1 parent
032b2e0dc0
Exists in
smarc_8mm-imx_v2019.04_4.19.35_1.1.0
and in
1 other branch
MLK-21861 mx7dsabresd: Fix wrong gpio name for io expander
Since the io expander node in DTS is using name gpio-expander not gpio_spi, must update the codes for the name, otherwise fec initialization will hang. Signed-off-by: Ye Li <ye.li@nxp.com>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
board/freescale/mx7dsabresd/mx7dsabresd.c
... | ... | @@ -262,9 +262,9 @@ |
262 | 262 | int ret; |
263 | 263 | unsigned int gpio; |
264 | 264 | |
265 | - ret = gpio_lookup_name("gpio_spi@0_5", NULL, NULL, &gpio); | |
265 | + ret = gpio_lookup_name("gpio-expander@0_5", NULL, NULL, &gpio); | |
266 | 266 | if (ret) { |
267 | - printf("GPIO: 'gpio_spi@0_5' not found\n"); | |
267 | + printf("GPIO: 'gpio-expander@0_5' not found\n"); | |
268 | 268 | return -ENODEV; |
269 | 269 | } |
270 | 270 |