make irq specifier to be provided when assigining irq
[lunaix-os.git] / lunaix-os / includes / hal / devtree.h
index ae18e31983e89011f06a72960d7b216bc850a2d9..111617e7626c786e3afa5c4af5780ab0da90b7b5 100644 (file)
@@ -47,14 +47,14 @@ struct dtp_val
 {
     union
     {
 {
     union
     {
-        union {
-            const char*  str_val;
-            const char*  str_lst;
-        };
         ptr_t        ptr_val;
         dt_enc_t     encoded;
         
         union dtp_baseval* ref;
         ptr_t        ptr_val;
         dt_enc_t     encoded;
         
         union dtp_baseval* ref;
+        union {
+            const char*  str_val;
+            const char*  str_lst;
+        };
     };
     unsigned int size;
 };
     };
     unsigned int size;
 };
@@ -670,7 +670,7 @@ static inline void
 dtpi_init_empty(struct dtpropi* dtpi)
 {
     *dtpi = (struct dtpropi) {
 dtpi_init_empty(struct dtpropi* dtpi)
 {
     *dtpi = (struct dtpropi) {
-        .prop = { 0, 0 },
+        .prop = { {0}, 0 },
         .loc = 0
     };
 }
         .loc = 0
     };
 }