]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - init/do_mounts.c
driver-core: constify data for class_find_device()
[karo-tx-linux.git] / init / do_mounts.c
index 1d1b6348f903c8e517567794765120d3dfa16d16..a2b49f2c1bd81c82fcf6766b5509b2341b8b98d6 100644 (file)
@@ -81,9 +81,9 @@ struct uuidcmp {
  *
  * Returns 1 if the device matches, and 0 otherwise.
  */
-static int match_dev_by_uuid(struct device *dev, void *data)
+static int match_dev_by_uuid(struct device *dev, const void *data)
 {
-       struct uuidcmp *cmp = data;
+       const struct uuidcmp *cmp = data;
        struct hd_struct *part = dev_to_part(dev);
 
        if (!part->info)