backports: add cast in class_find_device()
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 15 Jun 2013 15:26:53 +0000 (17:26 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 19 Jun 2013 20:22:28 +0000 (22:22 +0200)
Also type of the 3 parameter of class_find_device() changed from void *
to const void *, add a cast to prevent a warning.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/linux/device.h

index 4c0adb778f9222a77de486e0c7dbef6947f2982e..c2f80e262c58d95e0dcba07de3e3494df3426044 100644 (file)
@@ -15,7 +15,7 @@
  */
 typedef int (backport_device_find_function_t)(struct device *, void *);
 #define class_find_device(cls, start, idx, fun) \
-       class_find_device((cls), (start), (idx),\
+       class_find_device((cls), (start), (void *)(idx),\
                          (backport_device_find_function_t *)(fun))
 #endif