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>pull/1090/head
parent
07c2a73750
commit
afd613ca2c
|
|
@ -198,7 +198,7 @@ static inline void exynos_ufs_ungate_clks(struct exynos_ufs *ufs)
|
|||
exynos_ufs_ctrl_clkstop(ufs, false);
|
||||
}
|
||||
|
||||
static int exynosauto_ufs_drv_init(struct device *dev, struct exynos_ufs *ufs)
|
||||
static int exynosauto_ufs_drv_init(struct exynos_ufs *ufs)
|
||||
{
|
||||
struct exynos_ufs_uic_attr *attr = ufs->drv_data->uic_attr;
|
||||
|
||||
|
|
@ -1424,7 +1424,7 @@ static int exynos_ufs_init(struct ufs_hba *hba)
|
|||
exynos_ufs_fmp_init(hba, ufs);
|
||||
|
||||
if (ufs->drv_data->drv_init) {
|
||||
ret = ufs->drv_data->drv_init(dev, ufs);
|
||||
ret = ufs->drv_data->drv_init(ufs);
|
||||
if (ret) {
|
||||
dev_err(dev, "failed to init drv-data\n");
|
||||
goto out;
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ struct exynos_ufs_drv_data {
|
|||
unsigned int quirks;
|
||||
unsigned int opts;
|
||||
/* SoC's specific operations */
|
||||
int (*drv_init)(struct device *dev, struct exynos_ufs *ufs);
|
||||
int (*drv_init)(struct exynos_ufs *ufs);
|
||||
int (*pre_link)(struct exynos_ufs *ufs);
|
||||
int (*post_link)(struct exynos_ufs *ufs);
|
||||
int (*pre_pwr_change)(struct exynos_ufs *ufs,
|
||||
|
|
|
|||
Loading…
Reference in New Issue