mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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>
This commit is contained in:
@@ -42,10 +42,10 @@ extern struct serial_device eserial5_device;
|
||||
extern struct serial_device eserial6_device;
|
||||
|
||||
extern void serial_register(struct serial_device *);
|
||||
extern void serial_initialize(void);
|
||||
extern void serial_stdio_init(void);
|
||||
extern int serial_assign(const char *name);
|
||||
extern void serial_reinit_all(void);
|
||||
int serial_initialize(void);
|
||||
|
||||
/* For usbtty */
|
||||
#ifdef CONFIG_USB_TTY
|
||||
|
Reference in New Issue
Block a user