Notify plugins of their own registrations

The Thunderbolt plugin wasn't actually working properly for
`DelayedActivation` because Thunderbolt devices weren't actually registered.

This only affected ChromeOS.
This commit is contained in:
Mario Limonciello 2021-01-05 13:17:53 -06:00 committed by Richard Hughes
parent 3165e94f7d
commit 9a6692eb84

View File

@ -2137,10 +2137,6 @@ fu_plugin_runner_device_register (FuPlugin *self, FuDevice *device)
if (priv->module == NULL)
return;
/* don't notify plugins on their own devices */
if (g_strcmp0 (fu_device_get_plugin (device), fu_plugin_get_name (self)) == 0)
return;
/* optional */
g_module_symbol (priv->module, "fu_plugin_device_registered", (gpointer *) &func);
if (func != NULL) {