Commit a2625c0b authored by Heiner Kallweit's avatar Heiner Kallweit Committed by sanglipeng
Browse files

mmc: core: add devm_mmc_alloc_host

stable inclusion
from stable-v5.10.192
commit 50ed76c9e09bff90c595d9531cdce5d8904324ee
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I933RF

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=50ed76c9e09bff90c595d9531cdce5d8904324ee



--------------------------------

[ Upstream commit 80df83c2 ]

Add a device-managed version of mmc_alloc_host().

The argument order is reversed compared to mmc_alloc_host() because
device-managed functions typically have the device argument first.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/6d8f9fdc-7c9e-8e4f-e6ef-5470b971c74e@gmail.com


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Stable-dep-of: b8ada54f ("mmc: meson-gx: fix deferred probing")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent b9441357
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment