of: unittest: document intentional interrupt-map provider build warning
[linux-2.6-microblaze.git] / drivers / firmware / dmi-id.c
index 4d5421d..940ddf9 100644 (file)
@@ -73,6 +73,10 @@ static void ascii_filter(char *d, const char *s)
 
 static ssize_t get_modalias(char *buffer, size_t buffer_size)
 {
+       /*
+        * Note new fields need to be added at the end to keep compatibility
+        * with udev's hwdb which does matches on "`cat dmi/id/modalias`*".
+        */
        static const struct mafield {
                const char *prefix;
                int field;
@@ -85,13 +89,13 @@ static ssize_t get_modalias(char *buffer, size_t buffer_size)
                { "svn", DMI_SYS_VENDOR },
                { "pn",  DMI_PRODUCT_NAME },
                { "pvr", DMI_PRODUCT_VERSION },
-               { "sku", DMI_PRODUCT_SKU },
                { "rvn", DMI_BOARD_VENDOR },
                { "rn",  DMI_BOARD_NAME },
                { "rvr", DMI_BOARD_VERSION },
                { "cvn", DMI_CHASSIS_VENDOR },
                { "ct",  DMI_CHASSIS_TYPE },
                { "cvr", DMI_CHASSIS_VERSION },
+               { "sku", DMI_PRODUCT_SKU },
                { NULL,  DMI_NONE }
        };