The serial_register function never fails (always return 0), so change it
to a void function to avoid wasting overhead on it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
static struct serial_device *serial_devices = NULL;
static struct serial_device *serial_current = NULL;
-int serial_register (struct serial_device *dev)
+void serial_register(struct serial_device *dev)
{
#ifdef CONFIG_NEEDS_MANUAL_RELOC
dev->init += gd->reloc_off;
dev->next = serial_devices;
serial_devices = dev;
-
- return 0;
}
void serial_initialize (void)