summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/uartlite.c
diff options
context:
space:
mode:
authorSam Povilus2017-03-16 03:43:24 +0100
committerGreg Kroah-Hartman2017-03-17 06:14:30 +0100
commitb44b96a060f3fd06456214cac7dfdd3ddf0caf2b (patch)
tree895eb9d97d0d78644b860510a1329fcaf3713ee2 /drivers/tty/serial/uartlite.c
parentserial: xuartps: Cleanup the clock enable (diff)
downloadkernel-qcow2-linux-b44b96a060f3fd06456214cac7dfdd3ddf0caf2b.tar.gz
kernel-qcow2-linux-b44b96a060f3fd06456214cac7dfdd3ddf0caf2b.tar.xz
kernel-qcow2-linux-b44b96a060f3fd06456214cac7dfdd3ddf0caf2b.zip
uartlite: Adding a kernel parameter for the number of uartlites
The number of uartlites should be set by a kernel parameter instead of using a #define. This allows the user to set the number of uartlites using only kconfig and not modifying kernel source. The uartlite is used by FPGAs that support a basically unlimited number of uarts so limiting it at 16 dosn't make sense as users might need more than that. Signed-off-by: Sam Povilus <kernel.development@povil.us> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/uartlite.c')
-rw-r--r--drivers/tty/serial/uartlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c
index 817bb0d3f326..c9b8d702dadc 100644
--- a/drivers/tty/serial/uartlite.c
+++ b/drivers/tty/serial/uartlite.c
@@ -28,7 +28,7 @@
#define ULITE_NAME "ttyUL"
#define ULITE_MAJOR 204
#define ULITE_MINOR 187
-#define ULITE_NR_UARTS 16
+#define ULITE_NR_UARTS CONFIG_SERIAL_UARTLITE_NR_UARTS
/* ---------------------------------------------------------------------
* Register definitions