[PATCH 5.4 114/202] ppdev: Add an error check in register_device