memstick: core: fix device_register() error handling