summaryrefslogtreecommitdiff
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2021-02-12 16:15:32 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2021-03-30 12:41:58 +0300
commitfefdd3c91e0a7b3cbb3f25925d93a57c45cb0f31 (patch)
tree114e3e85efb226b6e6f7ff4210a7f9ce34ed4ba3 /include/linux/mmc
parent147186f531ae49c18b7a9091a2c40e83b3d95649 (diff)
downloadlinux-fefdd3c91e0a7b3cbb3f25925d93a57c45cb0f31.tar.xz
mmc: core: Drop superfluous validations in mmc_hw|sw_reset()
The mmc_hw|sw_reset() APIs are designed to be called solely from upper layers, which means drivers that operates on top of the struct mmc_card, like the mmc block device driver and an SDIO functional driver. Additionally, as long as the struct mmc_host has a valid pointer to a struct mmc_card, the corresponding host->bus_ops pointer stays valid and assigned. For these reasons, let's drop the superfluous reference counting and the redundant validations in mmc_hw|sw_reset(). Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Adrian Hunter <adrian.hunter@intel.com> Link: https://lore.kernel.org/r/20210212131532.236775-1-ulf.hansson@linaro.org
Diffstat (limited to 'include/linux/mmc')
0 files changed, 0 insertions, 0 deletions