diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2022-03-03 19:51:42 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2022-03-15 12:25:21 +0300 |
commit | d6c9219ca1139b74541b2a98cee47a3426d754a9 (patch) | |
tree | 40b45f29a83d88476894441ec966190a67221d23 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3b6c472822f8bdeaa3cea8290f5b4a210dca5585 (diff) | |
download | linux-d6c9219ca1139b74541b2a98cee47a3426d754a9.tar.xz |
mmc: host: Return an error when ->enable_sdio_irq() ops is missing
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
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions