diff options
author | Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> | 2015-04-09 19:47:20 +0530 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2015-04-22 18:08:43 +0200 |
commit | 1bf7775ae6c112e70e027daa8f19bc14fb43ea53 (patch) | |
tree | b8c1c72d1a1d2d1c38322ae0f0fc9fa7d74ff81d /drivers | |
parent | 6a8aa6d07c3e2e7aefa588bb85583194d73db45e (diff) |
dm: gpio: uclass: Add flag to control sequence numbering
Like SPI and I2C few GPIO controllers also have multiple chip instances.
This patch adds the flag 'DM_UC_FLAG_SEQ_ALIAS' in gpio_uclass driver
to control device sequence numbering. By defalut the dev->r_seq for gpio_uclass
will alwalys returns -1, which leads the gpio driver probe failure.
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpio-uclass.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index a69bbd2002e..27778b4fccc 100644 --- a/drivers/gpio/gpio-uclass.c +++ b/drivers/gpio/gpio-uclass.c @@ -717,6 +717,7 @@ static int gpio_pre_remove(struct udevice *dev) UCLASS_DRIVER(gpio) = { .id = UCLASS_GPIO, .name = "gpio", + .flags = DM_UC_FLAG_SEQ_ALIAS, .post_probe = gpio_post_probe, .pre_remove = gpio_pre_remove, .per_device_auto_alloc_size = sizeof(struct gpio_dev_priv), |