Commit ae89bb0d363eba33074106309c81c02f84b91ef8

Authored by Bhuvanchandra DV
Committed by Stefano Babic
1 parent cd6ddc4813

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 when using the driver with device trees.

Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/gpio/gpio-uclass.c
... ... @@ -757,6 +757,7 @@
757 757 UCLASS_DRIVER(gpio) = {
758 758 .id = UCLASS_GPIO,
759 759 .name = "gpio",
  760 + .flags = DM_UC_FLAG_SEQ_ALIAS,
760 761 .post_probe = gpio_post_probe,
761 762 .pre_remove = gpio_pre_remove,
762 763 .per_device_auto_alloc_size = sizeof(struct gpio_dev_priv),