[PATCH openEuler-1.0-LTS 2/2] ppdev: Add an error check in register_device