summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorSatish Kamuju <skamuj@codeaurora.org>2015-10-06 03:45:16 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-10-06 03:45:16 -0700
commit6013e8d811510fe5fd87938e69c7918d6728105c (patch)
tree36dec1421ad54c6de3c92ffcf41a5a5751f4fb30 /init
parentecfbe4c386d3a6f3bd36da81e277decc17678be0 (diff)
downloadsystem_core-6013e8d811510fe5fd87938e69c7918d6728105c.zip
system_core-6013e8d811510fe5fd87938e69c7918d6728105c.tar.gz
system_core-6013e8d811510fe5fd87938e69c7918d6728105c.tar.bz2
Revert "system: core: Add uevent support for dvb devices"
This reverts commit ecfbe4c386d3a6f3bd36da81e277decc17678be0 Change-Id: I2c09c4a589c82dcbe0147c097fe22a0fb02b88c4
Diffstat (limited to 'init')
-rw-r--r--init/devices.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/init/devices.cpp b/init/devices.cpp
index 96607a4..9151f06 100644
--- a/init/devices.cpp
+++ b/init/devices.cpp
@@ -731,27 +731,6 @@ static void handle_generic_device_event(struct uevent *uevent)
base = "/dev/log/";
make_dir(base, 0755);
name += 4;
- } else if (!strncmp(uevent->subsystem, "dvb", 3)) {
- /* This imitates the file system that would be created
- * if we were using devfs instead to preserve backward compatibility
- * for users of dvb devices
- */
- int adapter_id;
- char dev_name[20] = {0};
-
- sscanf(name, "dvb%d.%s", &adapter_id, dev_name);
-
- /* build dvb directory */
- base = "/dev/dvb";
- mkdir(base, 0755);
-
- /* build adapter directory */
- snprintf(devpath, sizeof(devpath), "/dev/dvb/adapter%d", adapter_id);
- mkdir(devpath, 0755);
-
- /* build actual device directory */
- snprintf(devpath, sizeof(devpath), "/dev/dvb/adapter%d/%s",
- adapter_id, dev_name);
} else
base = "/dev/";
links = get_character_device_symlinks(uevent);