From: Jingoo Han Date: Thu, 1 Aug 2013 02:01:27 +0000 (+0900) Subject: mfd: max8997: Cast void pointer to data of max8997_pmic_dt_match X-Git-Tag: next-20130802~48^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ed6ccdc67f0722dfe817ebb2e16ccc8d2c30187a;p=karo-tx-linux.git mfd: max8997: Cast void pointer to data of max8997_pmic_dt_match Casting (void *) data of max8997_pmic_dt_match is necessary, because variable 'data' of struct 'of_device_id' is defined as 'const void *data'. Thus, pointer should be used instead of value. Signed-off-by: Jingoo Han Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c index ae55dd43d09c..15230476dc73 100644 --- a/drivers/mfd/max8997.c +++ b/drivers/mfd/max8997.c @@ -51,7 +51,7 @@ static struct mfd_cell max8997_devs[] = { #ifdef CONFIG_OF static struct of_device_id max8997_pmic_dt_match[] = { - { .compatible = "maxim,max8997-pmic", .data = TYPE_MAX8997 }, + { .compatible = "maxim,max8997-pmic", .data = (void *)TYPE_MAX8997 }, {}, }; #endif