diff options
-rw-r--r-- | include/drm/drm_mode_object.h | 24 | ||||
-rw-r--r-- | scripts/coccinelle/api/drm-get-put.cocci | 10 |
2 files changed, 0 insertions, 34 deletions
diff --git a/include/drm/drm_mode_object.h b/include/drm/drm_mode_object.h index 7ba3913f30b5..c34a3e8030e1 100644 --- a/include/drm/drm_mode_object.h +++ b/include/drm/drm_mode_object.h | |||
@@ -120,30 +120,6 @@ struct drm_mode_object *drm_mode_object_find(struct drm_device *dev, | |||
120 | void drm_mode_object_get(struct drm_mode_object *obj); | 120 | void drm_mode_object_get(struct drm_mode_object *obj); |
121 | void drm_mode_object_put(struct drm_mode_object *obj); | 121 | void drm_mode_object_put(struct drm_mode_object *obj); |
122 | 122 | ||
123 | /** | ||
124 | * drm_mode_object_reference - acquire a mode object reference | ||
125 | * @obj: DRM mode object | ||
126 | * | ||
127 | * This is a compatibility alias for drm_mode_object_get() and should not be | ||
128 | * used by new code. | ||
129 | */ | ||
130 | static inline void drm_mode_object_reference(struct drm_mode_object *obj) | ||
131 | { | ||
132 | drm_mode_object_get(obj); | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * drm_mode_object_unreference - release a mode object reference | ||
137 | * @obj: DRM mode object | ||
138 | * | ||
139 | * This is a compatibility alias for drm_mode_object_put() and should not be | ||
140 | * used by new code. | ||
141 | */ | ||
142 | static inline void drm_mode_object_unreference(struct drm_mode_object *obj) | ||
143 | { | ||
144 | drm_mode_object_put(obj); | ||
145 | } | ||
146 | |||
147 | int drm_object_property_set_value(struct drm_mode_object *obj, | 123 | int drm_object_property_set_value(struct drm_mode_object *obj, |
148 | struct drm_property *property, | 124 | struct drm_property *property, |
149 | uint64_t val); | 125 | uint64_t val); |
diff --git a/scripts/coccinelle/api/drm-get-put.cocci b/scripts/coccinelle/api/drm-get-put.cocci index 91fceb8f1fa2..ceb71ea7f61c 100644 --- a/scripts/coccinelle/api/drm-get-put.cocci +++ b/scripts/coccinelle/api/drm-get-put.cocci | |||
@@ -16,12 +16,6 @@ expression object; | |||
16 | @@ | 16 | @@ |
17 | 17 | ||
18 | ( | 18 | ( |
19 | - drm_mode_object_reference(object) | ||
20 | + drm_mode_object_get(object) | ||
21 | | | ||
22 | - drm_mode_object_unreference(object) | ||
23 | + drm_mode_object_put(object) | ||
24 | | | ||
25 | - drm_connector_reference(object) | 19 | - drm_connector_reference(object) |
26 | + drm_connector_get(object) | 20 | + drm_connector_get(object) |
27 | | | 21 | | |
@@ -62,10 +56,6 @@ position p; | |||
62 | @@ | 56 | @@ |
63 | 57 | ||
64 | ( | 58 | ( |
65 | drm_mode_object_unreference@p(object) | ||
66 | | | ||
67 | drm_mode_object_reference@p(object) | ||
68 | | | ||
69 | drm_connector_unreference@p(object) | 59 | drm_connector_unreference@p(object) |
70 | | | 60 | | |
71 | drm_connector_reference@p(object) | 61 | drm_connector_reference@p(object) |