baylibre-acme: don't report ACME as detected if no probes are present

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
This commit is contained in:
Bartosz Golaszewski 2015-02-17 18:27:04 +01:00 committed by Uwe Hermann
parent b1e034f758
commit 380ee96fdf
1 changed files with 7 additions and 0 deletions

View File

@ -109,6 +109,13 @@ static GSList *scan(GSList *options)
}
}
/*
* Let's assume there's no ACME device present if no probe
* has been registered.
*/
if (sdi->channel_groups == NULL)
goto err_out;
devices = g_slist_append(devices, sdi);
drvc->instances = g_slist_append(drvc->instances, sdi);