]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: serial: Make serial_initialize return int
authorOvidiu Panait <ovidiu.panait@windriver.com>
Fri, 24 Jul 2020 11:12:22 +0000 (14:12 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 6 Aug 2020 18:27:27 +0000 (14:27 -0400)
commit39a192231b065bb026c170d9384b622009796a3d
tree7d8f86de40cbd00baad046a03507e7ece36c0ab6
parent3a4b52a9e5a817e2c19434290c4e1fe1d792cba2
drivers: serial: Make serial_initialize return int

serial_initialize is called only during the common init sequence, after
relocation (in common/board_r.c). Because it has a void return value, it
has to wrapped in initr_serial. In order to be able to get rid of this
indirection, make serial_initialize return int.

Remove extern from prototype in order to silence the following checkpatch
warning:
check: extern prototypes should be avoided in .h files

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
drivers/serial/serial-uclass.c
drivers/serial/serial.c
include/serial.h