Skip to content

Commit 07c2a73

Browse files
ambarusmartinkpetersen
authored andcommitted
scsi: ufs: exynos: Remove empty drv_init method
Remove empty method. When the method is not set, the call is not made, saving a few cycles. Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org> Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Link: https://lore.kernel.org/r/20241031150033.3440894-2-peter.griffin@linaro.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 9852d85 commit 07c2a73

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/ufs/host/ufs-exynos.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,6 @@ static inline void exynos_ufs_ungate_clks(struct exynos_ufs *ufs)
198198
exynos_ufs_ctrl_clkstop(ufs, false);
199199
}
200200

201-
static int exynos7_ufs_drv_init(struct device *dev, struct exynos_ufs *ufs)
202-
{
203-
return 0;
204-
}
205-
206201
static int exynosauto_ufs_drv_init(struct device *dev, struct exynos_ufs *ufs)
207202
{
208203
struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr;
@@ -2036,7 +2031,6 @@ static const struct exynos_ufs_drv_data exynos_ufs_drvs = {
20362031
EXYNOS_UFS_OPT_BROKEN_RX_SEL_IDX |
20372032
EXYNOS_UFS_OPT_SKIP_CONNECTION_ESTAB |
20382033
EXYNOS_UFS_OPT_USE_SW_HIBERN8_TIMER,
2039-
.drv_init = exynos7_ufs_drv_init,
20402034
.pre_link = exynos7_ufs_pre_link,
20412035
.post_link = exynos7_ufs_post_link,
20422036
.pre_pwr_change = exynos7_ufs_pre_pwr_change,

0 commit comments

Comments
 (0)