[media] em28xx: ensure "closing" messages terminate with a newline
[firefly-linux-kernel-4.4.55.git] / drivers / media / usb / em28xx / em28xx-input.c
index d8dc03aadfbd6731be1043d38afcdbf4482fff4b..aea22deadc0a60b33f4f1dff35653920ba0e28f6 100644 (file)
@@ -654,8 +654,6 @@ next_button:
        if (dev->num_button_polling_addresses) {
                memset(dev->button_polling_last_values, 0,
                       EM28XX_NUM_BUTTON_ADDRESSES_MAX);
-               INIT_DELAYED_WORK(&dev->buttons_query_work,
-                                 em28xx_query_buttons);
                schedule_delayed_work(&dev->buttons_query_work,
                                      msecs_to_jiffies(dev->button_polling_interval));
        }
@@ -689,6 +687,7 @@ static int em28xx_ir_init(struct em28xx *dev)
        }
 
        kref_get(&dev->ref);
+       INIT_DELAYED_WORK(&dev->buttons_query_work, em28xx_query_buttons);
 
        if (dev->board.buttons)
                em28xx_init_buttons(dev);
@@ -833,7 +832,7 @@ static int em28xx_ir_fini(struct em28xx *dev)
                return 0;
        }
 
-       em28xx_info("Closing input extension");
+       em28xx_info("Closing input extension\n");
 
        em28xx_shutdown_buttons(dev);