diff --git a/profiles/input/hog.c b/profiles/input/hog.c
index c68a089..8d8f804 100644
--- a/profiles/input/hog.c
+++ b/profiles/input/hog.c
g_free(report);
}
-static void hog_device_free(struct hog_device *hogdev)
+static void hog_free_device(struct hog_device *hogdev)
{
btd_device_unref(hogdev->device);
g_slist_free_full(hogdev->reports, report_free);
if (hogdev->uhid_fd < 0) {
error("Failed to open uHID device: %s(%d)", strerror(errno),
errno);
- hog_device_free(hogdev);
+ hog_free_device(hogdev);
return NULL;
}
close(hogdev->uhid_fd);
hogdev->uhid_fd = -1;
- hog_device_free(hogdev);
+ hog_free_device(hogdev);
return 0;
}