@@ -281,44 +281,6 @@ int __must_check device_create_bin_file(struct device *dev,
281
281
void device_remove_bin_file (struct device * dev ,
282
282
const struct bin_attribute * attr );
283
283
284
- /* allows to add/remove a custom action to devres stack */
285
- int devm_remove_action_nowarn (struct device * dev , void (* action )(void * ), void * data );
286
-
287
- /**
288
- * devm_remove_action() - removes previously added custom action
289
- * @dev: Device that owns the action
290
- * @action: Function implementing the action
291
- * @data: Pointer to data passed to @action implementation
292
- *
293
- * Removes instance of @action previously added by devm_add_action().
294
- * Both action and data should match one of the existing entries.
295
- */
296
- static inline
297
- void devm_remove_action (struct device * dev , void (* action )(void * ), void * data )
298
- {
299
- WARN_ON (devm_remove_action_nowarn (dev , action , data ));
300
- }
301
-
302
- void devm_release_action (struct device * dev , void (* action )(void * ), void * data );
303
-
304
- int __devm_add_action (struct device * dev , void (* action )(void * ), void * data , const char * name );
305
- #define devm_add_action (dev , action , data ) \
306
- __devm_add_action(dev, action, data, #action)
307
-
308
- static inline int __devm_add_action_or_reset (struct device * dev , void (* action )(void * ),
309
- void * data , const char * name )
310
- {
311
- int ret ;
312
-
313
- ret = __devm_add_action (dev , action , data , name );
314
- if (ret )
315
- action (data );
316
-
317
- return ret ;
318
- }
319
- #define devm_add_action_or_reset (dev , action , data ) \
320
- __devm_add_action_or_reset(dev, action, data, #action)
321
-
322
284
/**
323
285
* devm_alloc_percpu - Resource-managed alloc_percpu
324
286
* @dev: Device to allocate per-cpu memory for
0 commit comments