]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: mtk-adsp-ipc: Switch to using dev_err_probe()
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 19 Sep 2024 12:02:08 +0000 (14:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Oct 2024 15:12:54 +0000 (17:12 +0200)
commit1bca6ee0d077abbaafa4ab1167d6d31659c1edbb
tree9c120286092f097aedbb758f4f3f305d23b73222
parentcb2aeb2ec25884133110ffe5a67ff3cf7dee5ceb
firmware: mtk-adsp-ipc: Switch to using dev_err_probe()

There is an error path that checks whether the return value is
-EPROBE_DEFER to decide whether to print the error message: that
is exactly open-coding dev_err_probe(), so, switch to that.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20240919120208.152987-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/mtk-adsp-ipc.c