diff options
author | Thomas Abraham <thomas.ab@samsung.com> | 2016-04-23 22:18:07 +0530 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2016-05-25 10:00:18 +0900 |
commit | ac985273135762a596482812551221019c319731 (patch) | |
tree | 49e453e1eb5c8511c3b223720516b1c36b99b10a /drivers/pinctrl/pinctrl-uclass.c | |
parent | fc15b9beed05dec6cc092c265042381a0eadb0e9 (diff) | |
download | u-boot-imx-ac985273135762a596482812551221019c319731.zip u-boot-imx-ac985273135762a596482812551221019c319731.tar.gz u-boot-imx-ac985273135762a596482812551221019c319731.tar.bz2 |
pinctrl: add the DM_UC_FLAG_SEQ_ALIAS flag for numbering the devices
It is possible to have multiple pin controllers in the system. Use the
DM_UC_FLAG_SEQ_ALIAS flag so that the pinctrl instances are assigned
a sequence number.
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'drivers/pinctrl/pinctrl-uclass.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-uclass.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c index ccc5d30..fd04b26 100644 --- a/drivers/pinctrl/pinctrl-uclass.c +++ b/drivers/pinctrl/pinctrl-uclass.c @@ -287,5 +287,6 @@ static int pinctrl_post_bind(struct udevice *dev) UCLASS_DRIVER(pinctrl) = { .id = UCLASS_PINCTRL, .post_bind = pinctrl_post_bind, + .flags = DM_UC_FLAG_SEQ_ALIAS, .name = "pinctrl", }; |