/* Reconnect serio port (re-initialize attached device). If reconnect fails (old device is no longer attached or there was no device to begin with) we do full rescan in hope of finding a driver for the port.  */
static int serio_reconnect_port(struct serio *serio)
/* Reconnect serio port (re-initialize attached device). If reconnect fails (old device is no longer attached or there was no device to begin with) we do full rescan in hope of finding a driver for the port.  */
static int serio_reconnect_port(struct serio *serio)
{
	int error = serio_reconnect_driver(serio);
	if (error) {
		serio_disconnect_port(serio);
		serio_find_driver(serio);
	}
	return error;
}