]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- statically allocate "dynamic" minors for dm and fbsplash
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 5 Jan 2005 10:21:45 +0000 (10:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  (to allow using static dev)

Changed files:
    linux-static-dev.patch -> 1.1

linux-static-dev.patch [new file with mode: 0644]

diff --git a/linux-static-dev.patch b/linux-static-dev.patch
new file mode 100644 (file)
index 0000000..4741d01
--- /dev/null
@@ -0,0 +1,33 @@
+--- linux-2.6.10/drivers/video/fbsplash.c.orig 2005-01-05 10:42:42.000000000 +0100
++++ linux-2.6.10/drivers/video/fbsplash.c      2005-01-05 11:15:25.000000000 +0100
+@@ -476,7 +476,7 @@
+ };
+ static struct miscdevice splash_dev = {
+-      .minor = MISC_DYNAMIC_MINOR,
++      .minor = 62 /* MISC_DYNAMIC_MINOR */,
+       .name = "fbsplash",
+       .fops = &splash_ops
+ };
+--- linux-2.6.10/drivers/char/misc.c.orig      2004-12-24 22:35:28.000000000 +0100
++++ linux-2.6.10/drivers/char/misc.c   2005-01-05 11:16:47.000000000 +0100
+@@ -220,7 +220,7 @@
+       }
+       if (misc->minor == MISC_DYNAMIC_MINOR) {
+-              int i = DYNAMIC_MINORS;
++              int i = DYNAMIC_MINORS - 2 /* reserved */;
+               while (--i >= 0)
+                       if ( (misc_minors[i>>3] & (1 << (i&7))) == 0)
+                               break;
+--- linux-2.6.10/drivers/md/dm-ioctl.c.orig    2004-12-24 22:34:29.000000000 +0100
++++ linux-2.6.10/drivers/md/dm-ioctl.c 2005-01-05 11:11:39.000000000 +0100
+@@ -1374,7 +1374,7 @@
+ };
+ static struct miscdevice _dm_misc = {
+-      .minor          = MISC_DYNAMIC_MINOR,
++      .minor          = 63 /* MISC_DYNAMIC_MINOR */,
+       .name           = DM_NAME,
+       .devfs_name     = "mapper/control",
+       .fops           = &_ctl_fops
This page took 4.106512 seconds and 4 git commands to generate.