@@ -507,54 +507,6 @@ struct fwnode_handle *fwnode_find_reference(const struct fwnode_handle *fwnode,
507
507
}
508
508
EXPORT_SYMBOL_GPL (fwnode_find_reference );
509
509
510
- /**
511
- * device_remove_properties - Remove properties from a device object.
512
- * @dev: Device whose properties to remove.
513
- *
514
- * The function removes properties previously associated to the device
515
- * firmware node with device_add_properties(). Memory allocated to the
516
- * properties will also be released.
517
- */
518
- void device_remove_properties (struct device * dev )
519
- {
520
- struct fwnode_handle * fwnode = dev_fwnode (dev );
521
-
522
- if (!fwnode )
523
- return ;
524
-
525
- if (is_software_node (fwnode -> secondary )) {
526
- fwnode_remove_software_node (fwnode -> secondary );
527
- set_secondary_fwnode (dev , NULL );
528
- }
529
- }
530
- EXPORT_SYMBOL_GPL (device_remove_properties );
531
-
532
- /**
533
- * device_add_properties - Add a collection of properties to a device object.
534
- * @dev: Device to add properties to.
535
- * @properties: Collection of properties to add.
536
- *
537
- * Associate a collection of device properties represented by @properties with
538
- * @dev. The function takes a copy of @properties.
539
- *
540
- * WARNING: The callers should not use this function if it is known that there
541
- * is no real firmware node associated with @dev! In that case the callers
542
- * should create a software node and assign it to @dev directly.
543
- */
544
- int device_add_properties (struct device * dev ,
545
- const struct property_entry * properties )
546
- {
547
- struct fwnode_handle * fwnode ;
548
-
549
- fwnode = fwnode_create_software_node (properties , NULL );
550
- if (IS_ERR (fwnode ))
551
- return PTR_ERR (fwnode );
552
-
553
- set_secondary_fwnode (dev , fwnode );
554
- return 0 ;
555
- }
556
- EXPORT_SYMBOL_GPL (device_add_properties );
557
-
558
510
/**
559
511
* fwnode_get_name - Return the name of a node
560
512
* @fwnode: The firmware node
0 commit comments