summaryrefslogtreecommitdiff
path: root/drivers/char/misc.c
diff options
context:
space:
mode:
authorSangmoon Kim <sangmoon.kim@samsung.com>2020-10-29 09:28:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-03 11:52:04 +0300
commitc62b1f97e744039f01ec789ce01dfa0a8c9a1a99 (patch)
tree10a97192711cfafcdb7c12d93136d0ec97e687c1 /drivers/char/misc.c
parent48a3d90adafc9ed92d19c93d011f17ec9001cc34 (diff)
downloadlinux-c62b1f97e744039f01ec789ce01dfa0a8c9a1a99.tar.xz
char: misc: increase DYNAMIC_MINORS value
DYNAMIC_MINORS value has been set to 64. Due to this reason, we are facing a module loading fail problem of device driver like below. [ 45.712771] pdic_misc_init - return error : -16 We need to increase this value for registering more misc devices. Signed-off-by: Sangmoon Kim <sangmoon.kim@samsung.com> Link: https://lore.kernel.org/r/20201029062855.19757-1-sangmoon.kim@samsung.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/misc.c')
-rw-r--r--drivers/char/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/misc.c b/drivers/char/misc.c
index f6a147427029..ca5141ed5ef3 100644
--- a/drivers/char/misc.c
+++ b/drivers/char/misc.c
@@ -60,7 +60,7 @@ static DEFINE_MUTEX(misc_mtx);
/*
* Assigned numbers, used for dynamic minors
*/
-#define DYNAMIC_MINORS 64 /* like dynamic majors */
+#define DYNAMIC_MINORS 128 /* like dynamic majors */
static DECLARE_BITMAP(misc_minors, DYNAMIC_MINORS);
#ifdef CONFIG_PROC_FS