From 6d420d7018771cf5e7d2c459d4f878f3cd276d11 Mon Sep 17 00:00:00 2001 From: Stephen Boyd Date: Tue, 26 Feb 2013 15:29:13 -0800 Subject: [PATCH] misc: Increase dynamic number space We've exhausted all of the 64 dynamic minor numbers in misc devices. Ideally, we shouldn't be using so many misc devices. We should be using cdev directly instead. Increase the number for now so that kernel drivers don't fail to probe. Change-Id: I514f4acc7d27b68005ec7f0a8d4ab3c0906b36ff Signed-off-by: Stephen Boyd --- drivers/char/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/misc.c b/drivers/char/misc.c index 8069b361b8dd..803b7840759a 100644 --- a/drivers/char/misc.c +++ b/drivers/char/misc.c @@ -59,7 +59,7 @@ static DEFINE_MUTEX(misc_mtx); /* * Assigned numbers, used for dynamic minors */ -#define DYNAMIC_MINORS 64 /* like dynamic majors */ +#define DYNAMIC_MINORS 96 /* like dynamic majors */ static DECLARE_BITMAP(misc_minors, DYNAMIC_MINORS); #ifdef CONFIG_PROC_FS