[PATCH 5.15 222/402] ppdev: Add an error check in register_device