File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -1037,15 +1037,6 @@ struct cxl_root *find_cxl_root(struct cxl_port *port)
1037
1037
}
1038
1038
EXPORT_SYMBOL_NS_GPL (find_cxl_root , "CXL" );
1039
1039
1040
- void put_cxl_root (struct cxl_root * cxl_root )
1041
- {
1042
- if (!cxl_root )
1043
- return ;
1044
-
1045
- put_device (& cxl_root -> port .dev );
1046
- }
1047
- EXPORT_SYMBOL_NS_GPL (put_cxl_root , "CXL" );
1048
-
1049
1040
static struct cxl_dport * find_dport (struct cxl_port * port , int id )
1050
1041
{
1051
1042
struct cxl_dport * dport ;
Original file line number Diff line number Diff line change @@ -737,10 +737,10 @@ struct cxl_port *devm_cxl_add_port(struct device *host,
737
737
struct cxl_root * devm_cxl_add_root (struct device * host ,
738
738
const struct cxl_root_ops * ops );
739
739
struct cxl_root * find_cxl_root (struct cxl_port * port );
740
- void put_cxl_root (struct cxl_root * cxl_root );
741
- DEFINE_FREE (put_cxl_root , struct cxl_root * , if (_T ) put_cxl_root (_T ))
742
740
741
+ DEFINE_FREE (put_cxl_root , struct cxl_root * , if (_T ) put_device (& _T -> port .dev ))
743
742
DEFINE_FREE (put_cxl_port , struct cxl_port * , if (!IS_ERR_OR_NULL (_T )) put_device (& _T -> dev ))
743
+
744
744
int devm_cxl_enumerate_ports (struct cxl_memdev * cxlmd );
745
745
void cxl_bus_rescan (void );
746
746
void cxl_bus_drain (void );
You can’t perform that action at this time.
0 commit comments