Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: ufs: exynos: Remove superfluous function parameter

The pointer to device can be obtained from ufs->hba->dev, remove
superfluous function parameter.

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-3-peter.griffin@linaro.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Tudor Ambarus and committed by
Martin K. Petersen
afd613ca 07c2a737

+3 -3
+2 -2
drivers/ufs/host/ufs-exynos.c
··· 198 198 exynos_ufs_ctrl_clkstop(ufs, false); 199 199 } 200 200 201 - static int exynosauto_ufs_drv_init(struct device *dev, struct exynos_ufs *ufs) 201 + static int exynosauto_ufs_drv_init(struct exynos_ufs *ufs) 202 202 { 203 203 struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr; 204 204 ··· 1424 1424 exynos_ufs_fmp_init(hba, ufs); 1425 1425 1426 1426 if (ufs->drv_data->drv_init) { 1427 - ret = ufs->drv_data->drv_init(dev, ufs); 1427 + ret = ufs->drv_data->drv_init(ufs); 1428 1428 if (ret) { 1429 1429 dev_err(dev, "failed to init drv-data\n"); 1430 1430 goto out;
+1 -1
drivers/ufs/host/ufs-exynos.h
··· 182 182 unsigned int quirks; 183 183 unsigned int opts; 184 184 /* SoC's specific operations */ 185 - int (*drv_init)(struct device *dev, struct exynos_ufs *ufs); 185 + int (*drv_init)(struct exynos_ufs *ufs); 186 186 int (*pre_link)(struct exynos_ufs *ufs); 187 187 int (*post_link)(struct exynos_ufs *ufs); 188 188 int (*pre_pwr_change)(struct exynos_ufs *ufs,