serial: Drop .remove functions from all drivers
Depending on specifics, some 'serdev' devices might need prevent
parent console device from being removed and corresponding memory
deallocated to properly function until the very end of Barebox's
execution. An example of such a use-case would be a reset handler
relying on a serdev device for transport.

To avoid having to develop complicatione reference counting/ownership
scheme drop all of the code that calls console_unregister() and frees
the memory effectively making the problem above impossible to arise.

All of the de-initialization that serial drivers were doing in their
.remove functions was somewhat superflous anyway, so this change
should be pretty harmless.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent cebb36c commit 25cb29b1357d5005de3e149744a2ebee03a743bf
@Andrey Smirnov Andrey Smirnov authored on 12 Apr 2018
Sascha Hauer committed on 17 Apr 2018
Showing 8 changed files
View
drivers/serial/serial_auart.c
View
drivers/serial/serial_cadence.c
View
drivers/serial/serial_clps711x.c
View
drivers/serial/serial_imx.c
View
drivers/serial/serial_lpuart.c
View
drivers/serial/serial_pxa.c
View
drivers/serial/serial_s3c.c
View
drivers/serial/stm-serial.c