summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clocksource.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-imx/clocksource.c')
-rw-r--r--arch/arm/mach-imx/clocksource.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/clocksource.c b/arch/arm/mach-imx/clocksource.c
index eba04a33a4..06d2fba412 100644
--- a/arch/arm/mach-imx/clocksource.c
+++ b/arch/arm/mach-imx/clocksource.c
@@ -99,7 +99,7 @@ static int imx_gpt_probe(struct device_d *dev)
if (timer_base)
return 0;
- ret = dev_get_drvdata(dev, (unsigned long *)&regs);
+ ret = dev_get_drvdata(dev, (const void **)&regs);
if (ret)
return ret;
@@ -136,10 +136,10 @@ static int imx_gpt_probe(struct device_d *dev)
static __maybe_unused struct of_device_id imx_gpt_dt_ids[] = {
{
.compatible = "fsl,imx1-gpt",
- .data = (unsigned long)&regs_imx1,
+ .data = &regs_imx1,
}, {
.compatible = "fsl,imx31-gpt",
- .data = (unsigned long)&regs_imx31,
+ .data = &regs_imx31,
}, {
/* sentinel */
}