[PATCH openEuler-5.10 076/100] nfc: fix error handling of nfc_proto_register()