mmc: core: add devm_mmc_alloc_host
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 3 Feb 2023 23:53:35 +0000 (00:53 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2023 22:55:43 +0000 (23:55 +0100)
commit80df83c2c57e75cb482ccf0c639ce84703ab41a2
treeeeb6fdba1bd0b6bd60ddf79e9659fb6bba24a2a6
parent56f34e8ddc40d8eca29fb16ada409ac74c180b1f
mmc: core: add devm_mmc_alloc_host

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: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/6d8f9fdc-7c9e-8e4f-e6ef-5470b971c74e@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/host.c
include/linux/mmc/host.h