chiark / gitweb /
[PATCH] remove udev_dbus.h from Makefile
[elogind.git] / udev-add.c
index 2bd16014f5835a749660e60df0bdee9c7295b61c..aef755442fd3c4ecfab6d36489d65cb8c963a28e 100644 (file)
@@ -39,8 +39,6 @@
 #include "udev.h"
 #include "udev_lib.h"
 #include "udev_version.h"
-#include "udev_dbus.h"
-#include "udev_selinux.h"
 #include "logging.h"
 #include "namedev.h"
 #include "udevdb.h"
@@ -278,9 +276,6 @@ static int create_node(struct udevice *dev, int fake)
                }
        }
 
-       if (!fake)
-               selinux_add_node(filename);
-
        /* create symlink if requested */
        foreach_strpart(dev->symlink, " ", pos, len) {
                strfieldcpymax(linkname, pos, len+1);
@@ -418,7 +413,7 @@ int udev_add_device(char *path, char *subsystem, int fake)
        retval = create_node(&dev, fake);
 
        if ((retval == 0) && (!fake))
-               sysbus_send_create(&dev, path);
+               dev_d_send(&dev, subsystem);
 
 exit:
        if (class_dev)