dm: gpio: uclass: Add flag to control sequence numbering
authorBhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Mon, 1 Jun 2015 13:07:15 +0000 (18:37 +0530)
committerStefano Babic <sbabic@denx.de>
Mon, 8 Jun 2015 06:41:54 +0000 (08:41 +0200)
commitae89bb0d363eba33074106309c81c02f84b91ef8
treec8bf866075005fdb7dc96b4dd61dc00092e249c2
parentcd6ddc48134297497d226209a4e6ea72b71c87c5
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>
drivers/gpio/gpio-uclass.c