Skip to content

Commit e7458be

Browse files
Mani-Sadhasivammartinkpetersen
authored andcommitted
scsi: ufs: qcom: Remove unused ufs_qcom_hosts struct array
ufs_qcom_hosts array is assigned, but not used anywhere. So let's remove it. Reviewed-by: Andrew Halaney <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Tested-by: Andrew Halaney <[email protected]> # sa8775p-ride Signed-off-by: Martin K. Petersen <[email protected]>
1 parent c7afada commit e7458be

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

drivers/ufs/host/ufs-qcom.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ static const struct __ufs_qcom_bw_table {
9090
[MODE_MAX][0][0] = { 7643136, 307200 },
9191
};
9292

93-
static struct ufs_qcom_host *ufs_qcom_hosts[MAX_UFS_QCOM_HOSTS];
94-
9593
static void ufs_qcom_get_default_testbus_cfg(struct ufs_qcom_host *host);
9694
static int ufs_qcom_set_core_clk_ctrl(struct ufs_hba *hba, bool is_scale_up);
9795

@@ -1194,9 +1192,6 @@ static int ufs_qcom_init(struct ufs_hba *hba)
11941192

11951193
ufs_qcom_setup_clocks(hba, true, POST_CHANGE);
11961194

1197-
if (hba->dev->id < MAX_UFS_QCOM_HOSTS)
1198-
ufs_qcom_hosts[hba->dev->id] = host;
1199-
12001195
ufs_qcom_get_default_testbus_cfg(host);
12011196
err = ufs_qcom_testbus_config(host);
12021197
if (err)

drivers/ufs/host/ufs-qcom.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <soc/qcom/ice.h>
1111
#include <ufs/ufshcd.h>
1212

13-
#define MAX_UFS_QCOM_HOSTS 1
1413
#define MAX_U32 (~(u32)0)
1514
#define MPHY_TX_FSM_STATE 0x41
1615
#define TX_FSM_HIBERN8 0x1

0 commit comments

Comments
 (0)