diff --git a/src/device.c b/src/device.c
index 222c87f..906a1a7 100644
--- a/src/device.c
+++ b/src/device.c
service_accept(l->data);
}
-static void device_remove_gatt_profile(struct btd_device *device,
+static void device_remove_gatt_service(struct btd_device *device,
struct gatt_db_attribute *attr)
{
struct btd_service *service;
* remove it anyway.
*/
if (device->client || device->temporary == TRUE)
- device_remove_gatt_profile(device, attr);
+ device_remove_gatt_service(device, attr);
g_free(l->data);
device->uuids = g_slist_delete_link(device->uuids, l);