From ce7cd9fb0611eb3ddf74707268d82005161ffb99 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 15 May 2023 14:02:33 -0700 Subject: [PATCH] plugin: Treat -ENOTSUP as -ENOSYS If plugin .init returns -ENOTSUP treat it as the system doesn't support the driver since that is the error returned by btd_profile_register when experimental is disabled. --- src/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.c b/src/plugin.c index dd7b406c8..80990f8c3 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -186,7 +186,7 @@ start: err = plugin->desc->init(); if (err < 0) { - if (err == -ENOSYS) + if (err == -ENOSYS || err == -ENOTSUP) warn("System does not support %s plugin", plugin->desc->name); else -- 2.47.3