tree b4a2bc39f9c60a28d965ed2586dc33dd02816392
parent a757e64cfa400391041ed7953f0290c34a820c93
author David Brownell <[EMAIL PROTECTED]> Mon, 18 Apr 2005 00:57:20 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Mon, 18 Apr 2005 00:57:20 -0700

[PATCH] revert fs/char_dev.c CONFIG_BASE_FULL change

This reverts a fs/char_dev.c patch that was merged into BK on March 3.

The problem is that it breaks things ... __register_chrdev_region() has
a block of code, commented "temporary" for over two years now, which
fails rudely during PCMCIA initialization or other register_chrdev()
calls, because it doesn't "degrade to linked list".  This keeps whole
subsystems from working.

A real fix to that "temporary" code should be possible, using some better
scheme to allocate major numbers, but it's not something I want to spend
time on just now.

Signed-off-by: David Brownell <[EMAIL PROTECTED]>
Acked-by: Matt Mackall <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>


 char_dev.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

Index: fs/char_dev.c
===================================================================
--- 73214a96945eb017e33c0f732ad0f1e8d10c2e8e/fs/char_dev.c  (mode:100644 
sha1:7357a9127df1551066f4b07554e2ccddd598633e)
+++ b4a2bc39f9c60a28d965ed2586dc33dd02816392/fs/char_dev.c  (mode:100644 
sha1:a745b1d9e5458684205c38da349d7e850ff66d81)
@@ -26,8 +26,7 @@
 
 static struct kobj_map *cdev_map;
 
-/* degrade to linked list for small systems */
-#define MAX_PROBE_HASH (CONFIG_BASE_SMALL ? 1 : 255)
+#define MAX_PROBE_HASH 255     /* random */
 
 static DECLARE_MUTEX(chrdevs_lock);
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to