fpga: dfl: expand minor range when registering chrdev region
authorChengguang Xu <cgxu519@gmx.com>
Thu, 9 May 2019 21:08:29 +0000 (16:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2019 18:32:12 +0000 (20:32 +0200)
commitde9a7f6f5f1967d275311cca9163b4a3ffe9b0ae
treeaa2878a6e3de8b12eed8f4b7a4ee30495934c723
parentdfe3de8d397bf878b31864d4e489d41118ec475f
fpga: dfl: expand minor range when registering chrdev region

Actually, total amount of available minor number
for a single major is MINORMASK + 1. So expand
minor range when registering chrdev region.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Acked-by: Wu Hao <hao.wu@intel.com>
Acked-by: Alan Tull <atull@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/dfl.c