]> git.karo-electronics.de Git - karo-tx-linux.git/commit
device-dax: kill NR_DEV_DAX
authorDan Williams <dan.j.williams@intel.com>
Mon, 8 May 2017 19:33:53 +0000 (12:33 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 9 May 2017 16:08:22 +0000 (09:08 -0700)
commitcf1e22891bee39f50e058bee0827086fd75a8717
treebc86051626667807a69b7f5daeb0ee9dc671f75c
parentef51042472f55b325fd7f2b26a2e29fd89757234
device-dax: kill NR_DEV_DAX

There is no point to ask how many device-dax instances the kernel should
support. Since we are already using a dynamic major number, just allow
the max number of minors by default and be done. This also fixes the
fact that the proposed max for the NR_DEV_DAX range was larger than what
could be supported by alloc_chrdev_region().

Fixes: ba09c01d2fa8 ("dax: convert to the cdev api")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/Kconfig
drivers/dax/super.c