--- health/hdp.c | 6 +++--- health/hdp_types.h | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/health/hdp.c b/health/hdp.c index 0a98118..70ffde5 100644 --- a/health/hdp.c +++ b/health/hdp.c @@ -391,9 +391,9 @@ static struct hdp_link *create_health_link(struct hdp_instance *hdpi, if (*err) return NULL; - if (g_dbus_register_interface(hdpl->dev->conn, hdpl->path, HEALTH_LINK, - health_link_methods, NULL, NULL, - hdpl, health_link_path_unregister)) + if (g_dbus_register_interface(hdpl->hdpi->adapter->conn, hdpl->path, + HEALTH_LINK, health_link_methods, + NULL, NULL, hdpl, health_link_path_unregister)) return hdpl; g_set_error(err, HDP_ERROR, HDP_UNSPECIFIED_ERROR, diff --git a/health/hdp_types.h b/health/hdp_types.h index 05bfbfe..79419a1 100644 --- a/health/hdp_types.h +++ b/health/hdp_types.h @@ -104,7 +104,6 @@ struct hdp_instance { struct hdp_link { struct hdp_instance *hdpi; /* HDP session */ - struct hdp_device *dev; /* Health Device */ struct mcap_mcl *mcl; /* MCAP mcl */ GSList *channels; /* Data channels */ char *path; /* HDP link path */ -- 1.6.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html