]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: speakup: Fix getting port information
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 14 Jan 2016 23:47:41 +0000 (00:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jan 2016 06:55:40 +0000 (22:55 -0800)
commitdf0a2e599cb25cc7df099f07522a89e682bedb58
tree20e83aac815e77a08da8428a80b3150b94a5fc94
parent79f7009a3cc0f5fd99394cbb78bd82157eb8607d
Staging: speakup: Fix getting port information

Commit 4c5b6fd8344b ("staging: speakup: Fixed warning <linux/serial.h>
instead of <asm/serial.h>") broke the port information in the speakup
driver: SERIAL_PORT_DFNS only gets defined if asm/serial.h is included,
and no other header includes asm/serial.h.

We here make sure serialio.c does get the arch-specific definition of
SERIAL_PORT_DFNS from asm/serial.h, if any.

Along the way, this makes sure that we do have information for the
requested serial port number (index)

Fixes: 4c5b6fd8344b ("staging: speakup: Fixed warning <linux/serial.h> instead of <asm/serial.h>")
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: stable <stable@vger.kernel.org> # 3.18
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/serialio.c