Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33abed3c authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs-debugfs: change the root dir name to device name" into msm-4.8

parents 9a0dc538 dfa4fa79
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -1470,17 +1470,14 @@ DEFINE_SIMPLE_ATTRIBUTE(ufsdbg_err_state,

void ufsdbg_add_debugfs(struct ufs_hba *hba)
{
	char root_name[sizeof("ufshcd00")];

	if (!hba) {
		dev_err(hba->dev, "%s: NULL hba, exiting", __func__);
		goto err_no_root;
	}

	snprintf(root_name, ARRAY_SIZE(root_name), "%s%d", UFSHCD,
		hba->host->host_no);
	hba->debugfs_files.debugfs_root = debugfs_create_dir(dev_name(hba->dev),
							     NULL);

	hba->debugfs_files.debugfs_root = debugfs_create_dir(root_name, NULL);
	if (IS_ERR(hba->debugfs_files.debugfs_root))
		/* Don't complain -- debugfs just isn't enabled */
		goto err_no_root;