--- zzzz-none-000/linux-2.6.39.4/drivers/base/class.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/drivers/base/class.c 2021-11-10 13:23:10.000000000 +0000 @@ -407,8 +407,8 @@ * 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;