[PATCH 4.19 102/213] ppdev: Add an error check in register_device