summaryrefslogtreecommitdiff
path: root/drivers/mtd/maps/physmap-versatile.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/physmap-versatile.c')
-rw-r--r--drivers/mtd/maps/physmap-versatile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/physmap-versatile.c b/drivers/mtd/maps/physmap-versatile.c
index 8e15d514c82d..2e779111bf79 100644
--- a/drivers/mtd/maps/physmap-versatile.c
+++ b/drivers/mtd/maps/physmap-versatile.c
@@ -206,7 +206,7 @@ int of_flash_probe_versatile(struct platform_device *pdev,
if (!sysnp)
return -ENODEV;
- versatile_flashprot = (enum versatile_flashprot)devid->data;
+ versatile_flashprot = (uintptr_t)devid->data;
rmap = syscon_node_to_regmap(sysnp);
of_node_put(sysnp);
if (IS_ERR(rmap))