summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/ecore_evas/engines/drm/ecore_evas_drm.c')
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
index a801445492..c8714ac1b9 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -148,15 +148,9 @@ _ecore_evas_drm_init(Ecore_Evas *ee, Ecore_Evas_Engine_Drm_Data *edata, const ch
148 148
149 if (!device) device = "seat0"; 149 if (!device) device = "seat0";
150 150
151 edata->dev = ecore_drm2_device_find(device, 0); 151 edata->dev = ecore_drm2_device_open(device, 0);
152 if (!edata->dev) 152 if (!edata->dev)
153 { 153 {
154 ERR("Failed to create device");
155 goto dev_err;
156 }
157
158 if (ecore_drm2_device_open(edata->dev) < 0)
159 {
160 ERR("Failed to open device"); 154 ERR("Failed to open device");
161 goto open_err; 155 goto open_err;
162 } 156 }
@@ -187,7 +181,6 @@ output_err:
187 ecore_drm2_device_close(edata->dev); 181 ecore_drm2_device_close(edata->dev);
188open_err: 182open_err:
189 ecore_drm2_device_free(edata->dev); 183 ecore_drm2_device_free(edata->dev);
190dev_err:
191 ecore_drm2_shutdown(); 184 ecore_drm2_shutdown();
192init_err: 185init_err:
193 return --_drm_init_count; 186 return --_drm_init_count;