mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
drm: rockchip: should set unique in bind
It was dropped when merge upstream patch Change-Id: I6f1464866c8b6f50fe65733cff42215bd4357e82 Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
This commit is contained in:
@@ -847,6 +847,10 @@ static int rockchip_drm_bind(struct device *dev)
|
||||
if (!drm_dev)
|
||||
return -ENOMEM;
|
||||
|
||||
ret = drm_dev_set_unique(drm_dev, "%s", dev_name(dev));
|
||||
if (ret)
|
||||
goto err_free;
|
||||
|
||||
dev_set_drvdata(dev, drm_dev);
|
||||
|
||||
private = devm_kzalloc(drm_dev->dev, sizeof(*private), GFP_KERNEL);
|
||||
|
||||
Reference in New Issue
Block a user