It looks like sg.c was missed in the update from put_device to device_unregister.
Attach a file by drag & drop or click to upload