xr_usb_serial_common: fix build
authorDavid Bauer <mail@david-bauer.net>
Sat, 22 May 2021 08:39:53 +0000 (10:39 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 8 Jun 2021 15:11:41 +0000 (17:11 +0200)
commit7100f4006394b43bc0134af6c2495e3c88d64945
tree4eb4e7f6e04d53e3ac17ab78e689bb6c6e2082e7
parent465ddb5b22a67a7abf9f4d7e0c6140bd13d2e3c3
xr_usb_serial_common: fix build

Building the xr_usb_serial module fails for recent 4.14 kernel with
CONFIG_PM enabled:

xr_usb_serial_common.c:1574:15: error: 'ASYNCB_INITIALIZED' undeclared
(first use in this function); did you mean 'RCU_INITIALIZER'?

Use tty_port_initialized in order to determine the status of the TTY
port.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 69cf7836df9e226b4d596d057ca6ad846201e0d0)
libs/xr_usb_serial_common/Makefile
libs/xr_usb_serial_common/patches/0001-common.c-fix-kernel-5.10-builds-with-CONFIG_PM-enabl.patch [new file with mode: 0644]