summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2022-03-03 17:51:42 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-15 14:18:25 +0200
commit95d65bca6eb9967aa5f6ed7a32e041b4f11ffbc2 (patch)
tree53380caf390918684decb8e114003e092169ebb2 /sound
parent813553e4a91f7444433914db524822bf976beebb (diff)
mmc: host: Return an error when ->enable_sdio_irq() ops is missing
[ Upstream commit d6c9219ca1139b74541b2a98cee47a3426d754a9 ] Even if the current WARN() notifies the user that something is severely wrong, we can still end up in a PANIC() when trying to invoke the missing ->enable_sdio_irq() ops. Therefore, let's also return an error code and prevent the host from being added. While at it, move the code into a separate function to prepare for subsequent changes and for further host caps validations. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Link: https://lore.kernel.org/r/20220303165142.129745-1-ulf.hansson@linaro.org Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions