summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/sun4i-gpadc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/sun4i-gpadc.c')
-rw-r--r--drivers/mfd/sun4i-gpadc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/sun4i-gpadc.c b/drivers/mfd/sun4i-gpadc.c
index 8a7ee5b6beb1..9cfc88134d03 100644
--- a/drivers/mfd/sun4i-gpadc.c
+++ b/drivers/mfd/sun4i-gpadc.c
@@ -107,7 +107,7 @@ static int sun4i_gpadc_probe(struct platform_device *pdev)
if (!of_id)
return -EINVAL;
- switch ((int)of_id->data) {
+ switch ((long)of_id->data) {
case ARCH_SUN4I_A10:
cells = sun4i_gpadc_cells;
size = ARRAY_SIZE(sun4i_gpadc_cells);