From 5ad9b269c57d77e14d95f493c97c89f79231770c Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 15 Jun 2013 17:26:53 +0200 Subject: [PATCH] backports: add cast in class_find_device() 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 --- backport/backport-include/linux/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backport/backport-include/linux/device.h b/backport/backport-include/linux/device.h index 4c0adb778f92..c2f80e262c58 100644 --- a/backport/backport-include/linux/device.h +++ b/backport/backport-include/linux/device.h @@ -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 -- 2.30.2