gpio-button-hotplug: remove duplicate logging text
authorPetr Štetiar <ynezz@true.cz>
Tue, 3 Mar 2020 11:13:29 +0000 (12:13 +0100)
committerPetr Štetiar <ynezz@true.cz>
Sun, 8 Mar 2020 14:10:55 +0000 (15:10 +0100)
Removes one of the duplicate `gpio-keys` words found in the logs:

 gpio-keys gpio-keys: gpio-keysdoes not support key code:143

Signed-off-by: Petr Štetiar <ynezz@true.cz>
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c

index 3e8e0ea26846d054bf878343a01005210f9e3d34..9575c6245b7e69201eb700261deb4c08b036acab 100644 (file)
@@ -517,20 +517,20 @@ static int gpio_keys_button_probe(struct platform_device *pdev,
                unsigned int gpio = button->gpio;
 
                if (button->wakeup) {
-                       dev_err(dev, DRV_NAME "does not support wakeup\n");
+                       dev_err(dev, "does not support wakeup\n");
                        return -EINVAL;
                }
 
                bdata->map_entry = button_get_index(button->code);
                if (bdata->map_entry < 0) {
-                       dev_warn(dev, DRV_NAME "does not support key code:%u\n",
+                       dev_warn(dev, "does not support key code:%u\n",
                                button->code);
                        continue;
                }
 
                if (!(button->type == 0 || button->type == EV_KEY ||
                      button->type == EV_SW)) {
-                       dev_warn(dev, DRV_NAME "only supports buttons or switches\n");
+                       dev_warn(dev, "only supports buttons or switches\n");
                        continue;
                }