[PATCH 5.4 154/224] media: lirc: Fix error handling in lirc_register()