Merge branch 'for-3.9/drivers' of git://git.kernel.dk/linux-block
[firefly-linux-kernel-4.4.55.git] / drivers / base / class.c
index 03243d4002fd5e995dd198447e98a9d2343fd89d..3ce8454713275a2bc7ab15a808e0c66dcfbece83 100644 (file)
@@ -420,8 +420,8 @@ EXPORT_SYMBOL_GPL(class_for_each_device);
  * code.  There's no locking restriction.
  */
 struct device *class_find_device(struct class *class, struct device *start,
-                                void *data,
-                                int (*match)(struct device *, void *))
+                                const void *data,
+                                int (*match)(struct device *, const void *))
 {
        struct class_dev_iter iter;
        struct device *dev;