mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
UPSTREAM: scsi: ufs: ufs-qcom: Remove redundant dev_err() call in ufs_qcom_init()
There is a error message within devm_ioremap_resource() already, so remove
the dev_err() call to avoid redundant error message.
Link: https://lore.kernel.org/r/20210409075522.2111083-1-yebin10@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 790f9a48ab)
Bug: 204438323
Signed-off-by: Bart Van Assche <bvanassche@google.com>
Change-Id: I06b2ace0ac1759812e34e5a9bb7ebe0bb73fbd2d
This commit is contained in:
@@ -1071,13 +1071,8 @@ static int ufs_qcom_init(struct ufs_hba *hba)
|
||||
if (res) {
|
||||
host->dev_ref_clk_ctrl_mmio =
|
||||
devm_ioremap_resource(dev, res);
|
||||
if (IS_ERR(host->dev_ref_clk_ctrl_mmio)) {
|
||||
dev_warn(dev,
|
||||
"%s: could not map dev_ref_clk_ctrl_mmio, err %ld\n",
|
||||
__func__,
|
||||
PTR_ERR(host->dev_ref_clk_ctrl_mmio));
|
||||
if (IS_ERR(host->dev_ref_clk_ctrl_mmio))
|
||||
host->dev_ref_clk_ctrl_mmio = NULL;
|
||||
}
|
||||
host->dev_ref_clk_en_mask = BIT(5);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user