They're tiny and useless wrappers.
-static int device_probe(struct connman_device *device)
+/**
+ * connman_device_register:
+ * @device: device structure
+ *
+ * Register device with the system
+ */
+int connman_device_register(struct connman_device *device)
return __connman_technology_add_device(device);
}
return __connman_technology_add_device(device);
}
-static void device_remove(struct connman_device *device)
-{
- DBG("device %p name %s", device, device->name);
-
- if (device->driver == NULL)
- return;
-
- remove_device(device);
-}
-
-/**
- * connman_device_register:
- * @device: device structure
- *
- * Register device with the system
- */
-int connman_device_register(struct connman_device *device)
-{
- return device_probe(device);
-}
-
/**
* connman_device_unregister:
* @device: device structure
/**
* connman_device_unregister:
* @device: device structure
*/
void connman_device_unregister(struct connman_device *device)
{
*/
void connman_device_unregister(struct connman_device *device)
{
+ DBG("device %p name %s", device, device->name);
+
+ if (device->driver == NULL)
+ return;
+
+ remove_device(device);