diff options
-rw-r--r-- | plugins/hfp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/hfp.c b/plugins/hfp.c index 219f2683..29a11f76 100644 --- a/plugins/hfp.c +++ b/plugins/hfp.c @@ -999,15 +999,14 @@ static int hfp_init() "PropertyChanged", uuid_emitted, NULL, NULL); - - uuid_hash = g_hash_table_new_full(g_str_hash, g_str_equal, - g_free, g_free); - if (adapter_watch == 0 || uuid_watch == 0) { err = -EIO; goto remove; } + uuid_hash = g_hash_table_new_full(g_str_hash, g_str_equal, + g_free, g_free); + err = ofono_modem_driver_register(&hfp_driver); if (err < 0) goto remove; |