From: "Peter E. Berger" <pberger@xxxxxxxxxxx> Move INIT_DELAY_WORK out of the if block. Signed-off-by: Peter E. Berger <pberger@xxxxxxxxxxx> --- drivers/usb/serial/io_ti.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 124c14c..0ef51ee 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c @@ -2438,9 +2438,8 @@ static int edge_startup(struct usb_serial *serial) return status; } + INIT_DELAYED_WORK(&edge_serial->heartbeat_work, edge_heartbeat_work); if (edge_serial->fw_version > FW_HEARTBEAT_VERSION_CUTOFF) { - INIT_DELAYED_WORK(&edge_serial->heartbeat_work, - edge_heartbeat_work); schedule_delayed_work(&edge_serial->heartbeat_work, FW_HEARTBEAT_SECS * HZ); } -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html