[PATCH 6.6 491/744] ppdev: Add an error check in register_device