]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Feb 2016 20:45:26 +0000 (15:45 -0500)
commitb143adc3f446be7dbb5a0d4c63089078d7718f06
treee488321f8539dbefc40f54b84148c81d23e5b9df
parentc4bbd2785e0ed7ed3e8c16776194ea9181fc3454
Staging: speakup: Fix getting port information

[ Upstream commit 327b882d3bcc1fba82dbd39b5cf5a838c81218e2 ]

Commit f79b0d9c223c ("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: f79b0d9c223c ("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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/staging/speakup/serialio.c