From: Marcel Holtmann Date: Sun, 8 Mar 2009 13:23:22 +0000 (+0100) Subject: Make sure only matching device probe routines are called X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~4018 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5989b5b0a03f0e8205c6e7f80be0cc94c664ec2;p=profile%2Fivi%2Fconnman.git Make sure only matching device probe routines are called --- diff --git a/src/device.c b/src/device.c index 1657235..7bb9a40 100644 --- a/src/device.c +++ b/src/device.c @@ -654,6 +654,9 @@ static void probe_driver(struct connman_element *element, gpointer user_data) if (element->device->driver != NULL) return; + if (driver->type != element->device->type) + return 0; + if (driver->probe(element->device) < 0) return;