Re: [PATCH -next 0/4] mmc: remove unnecessary set_drvdata() function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2023/8/8 19:01, Ulf Hansson wrote:
On Mon, 7 Aug 2023 at 16:20, Yang Yingliang <yangyingliang@xxxxxxxxxx> wrote:
The driver data will be set to NULL in device_unbind_cleanup() in driver
core code. So the set_drvdata(..., NULL) called in remove and error path
in probe can be removed.

Yang Yingliang (4):
   mmc: via-sdmmc: remove unnecessary dev_set_drvdata()
   mmc: block: remove unnecessary dev_set_drvdata()
   mmc: moxart: remove unnecessary dev_set_drvdata()
   mmc: sunplus: remove unnecessary platform_set_drvdata()

  drivers/mmc/core/block.c       | 1 -
  drivers/mmc/host/moxart-mmc.c  | 2 --
  drivers/mmc/host/sunplus-mmc.c | 1 -
  drivers/mmc/host/via-sdmmc.c   | 2 --
  4 files changed, 6 deletions(-)
Can you please squash these trivial patches into one patch for mmc?
OK.

Thanks,
Yang

Kind regards
Uffe
.



[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux