diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2020-07-24 14:12:22 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-06 21:27:27 +0300 |
commit | 39a192231b065bb026c170d9384b622009796a3d (patch) | |
tree | 7d8f86de40cbd00baad046a03507e7ece36c0ab6 /drivers/serial/serial-uclass.c | |
parent | 3a4b52a9e5a817e2c19434290c4e1fe1d792cba2 (diff) | |
download | u-boot-39a192231b065bb026c170d9384b622009796a3d.tar.xz |
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>
Diffstat (limited to 'drivers/serial/serial-uclass.c')
-rw-r--r-- | drivers/serial/serial-uclass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c index a0af0e6bfd..0027625ebf 100644 --- a/drivers/serial/serial-uclass.c +++ b/drivers/serial/serial-uclass.c @@ -170,9 +170,9 @@ int serial_init(void) } /* Called after relocation */ -void serial_initialize(void) +int serial_initialize(void) { - serial_init(); + return serial_init(); } static void _serial_putc(struct udevice *dev, char ch) |