When display stop, display_dev is released.
But it does not allocate when display restart, so add it.
Change-Id: I2e2c25ce67ef7a7c26db4e890008d382980faadd
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
if (status == DEVICE_OPS_STATUS_START)
return -EALREADY;
+ if (display_probe(NULL) < 0)
+ return -EPERM;
+
display_init(NULL);
return 0;
struct hw_info *info;
int r;
+ if (display_dev)
+ return 0;
+
r = hw_get_info(DISPLAY_HARDWARE_DEVICE_ID,
(const struct hw_info **)&info);
if (r < 0) {
assert(info);
info->close((struct hw_common *)display_dev);
+ display_dev = NULL;
return 0;
}