summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_drm2/Ecore_Drm2.h10
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c8
-rw-r--r--src/modules/ecore_evas/engines/drm/ecore_evas_drm.c2
3 files changed, 0 insertions, 20 deletions
diff --git a/src/lib/ecore_drm2/Ecore_Drm2.h b/src/lib/ecore_drm2/Ecore_Drm2.h
index d90ee99dc2..0468cbca5e 100644
--- a/src/lib/ecore_drm2/Ecore_Drm2.h
+++ b/src/lib/ecore_drm2/Ecore_Drm2.h
@@ -189,16 +189,6 @@ EAPI Ecore_Drm2_Device *ecore_drm2_device_open(const char *seat, unsigned int tt
189EAPI void ecore_drm2_device_close(Ecore_Drm2_Device *device); 189EAPI void ecore_drm2_device_close(Ecore_Drm2_Device *device);
190 190
191/** 191/**
192 * Free a given Ecore_Drm2_Device
193 *
194 * @param device
195 *
196 * @ingroup Ecore_Drm2_Device_Group
197 * @since 1.18
198 */
199EAPI void ecore_drm2_device_free(Ecore_Drm2_Device *device);
200
201/**
202 * Get the type of clock used by a given Ecore_Drm2_Device 192 * Get the type of clock used by a given Ecore_Drm2_Device
203 * 193 *
204 * @param device 194 * @param device
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index 42a21c0742..7ec429523b 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -682,17 +682,9 @@ EAPI void
682ecore_drm2_device_close(Ecore_Drm2_Device *device) 682ecore_drm2_device_close(Ecore_Drm2_Device *device)
683{ 683{
684 EINA_SAFETY_ON_NULL_RETURN(device); 684 EINA_SAFETY_ON_NULL_RETURN(device);
685 EINA_SAFETY_ON_TRUE_RETURN(device->fd < 0);
686 685
687 elput_input_shutdown(device->em); 686 elput_input_shutdown(device->em);
688 elput_manager_close(device->em, device->fd); 687 elput_manager_close(device->em, device->fd);
689}
690
691EAPI void
692ecore_drm2_device_free(Ecore_Drm2_Device *device)
693{
694 EINA_SAFETY_ON_NULL_RETURN(device);
695
696 if (_ecore_drm2_use_atomic) 688 if (_ecore_drm2_use_atomic)
697 _drm2_atomic_state_free(device->state); 689 _drm2_atomic_state_free(device->state);
698 690
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 c8714ac1b9..be1bd38567 100644
--- a/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
+++ b/src/modules/ecore_evas/engines/drm/ecore_evas_drm.c
@@ -180,7 +180,6 @@ _ecore_evas_drm_init(Ecore_Evas *ee, Ecore_Evas_Engine_Drm_Data *edata, const ch
180output_err: 180output_err:
181 ecore_drm2_device_close(edata->dev); 181 ecore_drm2_device_close(edata->dev);
182open_err: 182open_err:
183 ecore_drm2_device_free(edata->dev);
184 ecore_drm2_shutdown(); 183 ecore_drm2_shutdown();
185init_err: 184init_err:
186 return --_drm_init_count; 185 return --_drm_init_count;
@@ -194,7 +193,6 @@ _ecore_evas_drm_shutdown(Ecore_Evas_Engine_Drm_Data *edata)
194 193
195 ecore_drm2_outputs_destroy(edata->dev); 194 ecore_drm2_outputs_destroy(edata->dev);
196 ecore_drm2_device_close(edata->dev); 195 ecore_drm2_device_close(edata->dev);
197 ecore_drm2_device_free(edata->dev);
198 ecore_drm2_shutdown(); 196 ecore_drm2_shutdown();
199 ecore_event_evas_shutdown(); 197 ecore_event_evas_shutdown();
200 EINA_LIST_FREE(handlers, h) 198 EINA_LIST_FREE(handlers, h)