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

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

 



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(-)

-- 
2.25.1




[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