File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -4865,6 +4865,12 @@ static void debugfs_bist_init_v3_hw(struct hisi_hba *hisi_hba)
4865
4865
hisi_hba -> debugfs_bist_linkrate = SAS_LINK_RATE_1_5_GBPS ;
4866
4866
}
4867
4867
4868
+ static void debugfs_exit_v3_hw (struct hisi_hba * hisi_hba )
4869
+ {
4870
+ debugfs_remove_recursive (hisi_hba -> debugfs_dir );
4871
+ hisi_hba -> debugfs_dir = NULL ;
4872
+ }
4873
+
4868
4874
static void debugfs_init_v3_hw (struct hisi_hba * hisi_hba )
4869
4875
{
4870
4876
struct device * dev = hisi_hba -> dev ;
@@ -4888,18 +4894,13 @@ static void debugfs_init_v3_hw(struct hisi_hba *hisi_hba)
4888
4894
4889
4895
for (i = 0 ; i < hisi_sas_debugfs_dump_count ; i ++ ) {
4890
4896
if (debugfs_alloc_v3_hw (hisi_hba , i )) {
4891
- debugfs_remove_recursive (hisi_hba -> debugfs_dir );
4897
+ debugfs_exit_v3_hw (hisi_hba );
4892
4898
dev_dbg (dev , "failed to init debugfs!\n" );
4893
4899
break ;
4894
4900
}
4895
4901
}
4896
4902
}
4897
4903
4898
- static void debugfs_exit_v3_hw (struct hisi_hba * hisi_hba )
4899
- {
4900
- debugfs_remove_recursive (hisi_hba -> debugfs_dir );
4901
- }
4902
-
4903
4904
static int
4904
4905
hisi_sas_v3_probe (struct pci_dev * pdev , const struct pci_device_id * id )
4905
4906
{
You can’t perform that action at this time.
0 commit comments