]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/serial/amba-pl011.c
Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec...
[mirror_ubuntu-artful-kernel.git] / drivers / serial / amba-pl011.c
index 8c5bda27736cb279047ad79ac8cc94ab36c62db6..bf82e28770a9845af5cfef55098605e98bcef728 100644 (file)
@@ -767,7 +767,7 @@ static int pl011_probe(struct amba_device *dev, struct amba_id *id)
                goto out;
        }
 
-       base = ioremap(dev->res.start, PAGE_SIZE);
+       base = ioremap(dev->res.start, resource_size(&dev->res));
        if (!base) {
                ret = -ENOMEM;
                goto free;