[SPARC64]: of_device_register() error checking fix