serial: 8250: moxa: Store num_ports in brd
authorMatwey V. Kornilov <matwey@sai.msu.ru>
Thu, 29 Dec 2016 18:48:51 +0000 (21:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:26:05 +0000 (10:26 +0200)
commit5d29957578aea3a5d84baf2e5d863f4f5be24222
tree7ca0452d36f850318aff8e3b941d1f667d6b5fa8
parentd976d68e17269767a33b4646add0c41a40e7eed5
serial: 8250: moxa: Store num_ports in brd

[ Upstream commit 9c4b60fe5313c125b1bf68ef04b0010512c27f2d ]

When struct moxa8250_board is allocated, then num_ports should
be initialized in order to use it later in moxa8250_remove.

Signed-off-by: Matwey V. Kornilov <matwey@sai.msu.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_moxa.c