[PATCH 6.17 185/371] media: lirc: Fix error handling in lirc_register()