drm/rockchip: Using get device function to get display device.

If the uclass_find_device_by_of_offset display device probe function won't be
called. Display device's pinctrl will not take effect. SO we use
uclass_get_device_by_of_offset to get display device.

Change-Id: I1329eb5b5ffca7609dfc52bcc5623476f99bc8b0
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
Algea Cao 2017-11-16 14:18:14 +08:00 committed by Kever Yang
parent f5e7d25111
commit 8f7c31646f
1 changed files with 1 additions and 1 deletions

View File

@ -918,7 +918,7 @@ static int rockchip_display_probe(struct udevice *dev)
fdt_get_name(blob, child, NULL));
continue;
}
ret = uclass_find_device_by_of_offset(UCLASS_DISPLAY, conn_node, &conn_dev);
ret = uclass_get_device_by_of_offset(UCLASS_DISPLAY, conn_node, &conn_dev);
if (ret) {
printf("Warn: %s: can't find connector driver\n",
fdt_get_name(blob, child, NULL));