projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81632df
)
drm/rockchip: cdn-dp: Move mutex_init to probe
author
Jeffy Chen
<
[email protected]
>
Sun, 5 Feb 2017 07:55:00 +0000
(15:55 +0800)
committer
Mark Yao
<
[email protected]
>
Sun, 5 Feb 2017 08:29:58 +0000
(16:29 +0800)
We're trying to lock mutex when cdn-dp shutdown, so we need to make
sure the mutex is inited in cdn-dp's probe.
Signed-off-by: Jeffy Chen <
[email protected]
>
Reviewed-by: Guenter Roeck <
[email protected]
>
Reviewed-by: Chris Zhong <
[email protected]
>
Signed-off-by: Chris Zhong <
[email protected]
>
drivers/gpu/drm/rockchip/cdn-dp-core.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/rockchip/cdn-dp-core.c
b/drivers/gpu/drm/rockchip/cdn-dp-core.c
index 62e02a48ebeae0cbc8f3c80a1ccca4c595cf97a9..799e8260e7c4fbe0a8ddbbe811e537014e2e3eaa 100644
(file)
--- a/
drivers/gpu/drm/rockchip/cdn-dp-core.c
+++ b/
drivers/gpu/drm/rockchip/cdn-dp-core.c
@@
-1041,7
+1041,6
@@
static int cdn_dp_bind(struct device *dev, struct device *master, void *data)
dp->connected = false;
dp->active = false;
- mutex_init(&dp->lock);
INIT_WORK(&dp->event_work, cdn_dp_pd_event_work);
encoder = &dp->encoder;
@@
-1204,6
+1203,7
@@
static int cdn_dp_probe(struct platform_device *pdev)
return -EINVAL;
}
+ mutex_init(&dp->lock);
dev_set_drvdata(dev, dp);
return component_add(dev, &cdn_dp_component_ops);