[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 <dbrownell@users.sourceforge.net>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
David Brownell 2005-04-17 10:57:20 -07:00 коммит произвёл Linus Torvalds
Родитель a757e64cfa
Коммит 1d4d5b3253
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -26,8 +26,7 @@
static struct kobj_map *cdev_map; static struct kobj_map *cdev_map;
/* degrade to linked list for small systems */ #define MAX_PROBE_HASH 255 /* random */
#define MAX_PROBE_HASH (CONFIG_BASE_SMALL ? 1 : 255)
static DECLARE_MUTEX(chrdevs_lock); static DECLARE_MUTEX(chrdevs_lock);