Message ID | 20210914143835.511051-12-geert@linux-m68k.org |
---|---|
State | Accepted |
Commit | 11b92913d1cafeca5bc7c398bf6075dd00e0b8a7 |
Headers | show |
Series | auxdisplay: ht16k33: Add character display support | expand |
diff --git a/drivers/auxdisplay/ht16k33.c b/drivers/auxdisplay/ht16k33.c index 99daf1974980b435..8c9acc4800bc94e0 100644 --- a/drivers/auxdisplay/ht16k33.c +++ b/drivers/auxdisplay/ht16k33.c @@ -378,11 +378,7 @@ static int ht16k33_keypad_probe(struct i2c_client *client, ht16k33_keypad_stop(keypad->dev); - err = input_register_device(keypad->dev); - if (err) - return err; - - return 0; + return input_register_device(keypad->dev); } static int ht16k33_probe(struct i2c_client *client,