libnvdimm/labels: Introduce label setter helpers
[linux-2.6-microblaze.git] / drivers / nvdimm / namespace_devs.c
index f33245c..fb9e080 100644 (file)
@@ -2569,7 +2569,7 @@ static int init_active_labels(struct nd_region *nd_region)
                                u32 flags = nsl_get_flags(ndd, label);
 
                                flags &= ~NSLABEL_FLAG_LOCAL;
-                               label->flags = __cpu_to_le32(flags);
+                               nsl_set_flags(ndd, label, flags);
                        }
                        label_ent->label = label;