[PATCH 5.10 175/317] ppdev: Add an error check in register_device