diff options
Diffstat (limited to 'drivers/gpio/iproc_gpio.c')
-rw-r--r-- | drivers/gpio/iproc_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/iproc_gpio.c b/drivers/gpio/iproc_gpio.c index 0561b36e54..8c143e9b75 100644 --- a/drivers/gpio/iproc_gpio.c +++ b/drivers/gpio/iproc_gpio.c @@ -252,7 +252,7 @@ static int iproc_gpio_of_to_plat(struct udevice *dev) return ret; } - snprintf(name, sizeof(name), "GPIO%d", dev->req_seq); + snprintf(name, sizeof(name), "GPIO%d", dev_seq(dev)); plat->name = strdup(name); if (!plat->name) return -ENOMEM; |