[PATCH 5.10 235/332] media: lirc: Fix error handling in lirc_register()