From: Hauke Mehrtens Date: Sat, 15 Jun 2013 15:26:53 +0000 (+0200) Subject: backports: add cast in class_find_device() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5ad9b269c57d77e14d95f493c97c89f79231770c;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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