From f449b80bffc98b01f4460905985a97416e5da8e2 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 7 Nov 2008 18:21:43 -0300 Subject: Fix driver removal for serial port driver. Because of the last changes serial port driver would not remove all ports registered on probe just the one registered with serial port uuid if registered. --- serial/manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'serial/manager.c') diff --git a/serial/manager.c b/serial/manager.c index 60aa78e5..13968c09 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -107,13 +107,13 @@ static int serial_probe(struct btd_device *device, const char *uuid) return port_register(connection, path, &src, &dst, uuid, ch); } -static void serial_remove(struct btd_device *device, const char *uuid) +static void serial_remove(struct btd_device *device) { const gchar *path = device_get_path(device); DBG("path %s", path); - port_unregister(path, uuid); + port_unregister(path); } @@ -129,7 +129,7 @@ static int port_probe(struct btd_device *device, GSList *uuids) static void port_remove(struct btd_device *device) { - return serial_remove(device, SERIAL_PORT_UUID); + return serial_remove(device); } static struct btd_device_driver serial_port_driver = { -- cgit