summaryrefslogtreecommitdiff
path: root/drivers/mfd/max8997.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-01 06:01:27 +0400
committerLee Jones <lee.jones@linaro.org>2013-08-01 12:54:53 +0400
commited6ccdc67f0722dfe817ebb2e16ccc8d2c30187a (patch)
tree17ae16b0c644e7cbf4e0fc1efa6cbd7afd5d42d5 /drivers/mfd/max8997.c
parenta9c4055da8ee86e96cb34ad754f4f49028c8de4f (diff)
downloadlinux-ed6ccdc67f0722dfe817ebb2e16ccc8d2c30187a.tar.xz
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 <jg1.han@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/max8997.c')
-rw-r--r--drivers/mfd/max8997.c2
1 files changed, 1 insertions, 1 deletions
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