Input: novatek-nvt-ts - fix input_register_device() failure error message
authorHans de Goede <hdegoede@redhat.com>
Mon, 10 Jul 2023 12:36:32 +0000 (14:36 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 10 Jul 2023 18:50:38 +0000 (11:50 -0700)
Fix input_register_device() failure logging "failed to request irq"
as error message.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230710123633.323937-1-hdegoede@redhat.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/novatek-nvt-ts.c

index 7f7d879aac6d55b6a265bce39faee4b8228c8398..047e371448cef9192202f18521e9610d13122188 100644 (file)
@@ -272,7 +272,7 @@ static int nvt_ts_probe(struct i2c_client *client)
 
        error = input_register_device(input);
        if (error) {
-               dev_err(dev, "failed to request irq: %d\n", error);
+               dev_err(dev, "failed to register input device: %d\n", error);
                return error;
        }