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 <jeffy.chen@rock-chips.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
dp->connected = false;
dp->active = false;
- mutex_init(&dp->lock);
INIT_WORK(&dp->event_work, cdn_dp_pd_event_work);
encoder = &dp->encoder;
return -EINVAL;
}
+ mutex_init(&dp->lock);
dev_set_drvdata(dev, dp);
return component_add(dev, &cdn_dp_component_ops);