[PATCH 6.1 333/473] ppdev: Add an error check in register_device