tpm_crb: fix address space of the return pointer in crb_map_res()
[deliverable/linux.git] / drivers / char / tpm / tpm_crb.c
index 1547636368e81b617acf03cf2faefcb48d2ce35c..1b8e1b51bfc06a47f77eadd6ebc953cfa9f8b678 100644 (file)
@@ -245,7 +245,7 @@ static void __iomem *crb_map_res(struct device *dev, struct crb_priv *priv,
 
        /* Detect a 64 bit address on a 32 bit system */
        if (start != new_res.start)
-               return ERR_PTR(-EINVAL);
+               return (void __iomem *) ERR_PTR(-EINVAL);
 
        if (!resource_contains(io_res, &new_res))
                return devm_ioremap_resource(dev, &new_res);
This page took 0.024216 seconds and 5 git commands to generate.