of: Provide a function to request and map memory
authorMatthias Brugger <matthias.bgg@gmail.com>
Fri, 18 Jul 2014 09:36:39 +0000 (11:36 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 23 Jul 2014 10:02:30 +0000 (12:02 +0200)
commitefd342fb0031a17758571dce42e3f373d94e2fec
tree914578b4b0944ae5ca884e18ffe13cd223dccb14
parent7e1391876c8f95df9241deb78fa98e799e7bb05e
of: Provide a function to request and map memory

A call to of_iomap does not request the memory region. This patch adds the
function of_io_request_and_map which requests the memory region before
mapping it.

Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Suggested-by: Rob Herring <robh@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/of/address.c
include/linux/io.h
include/linux/of_address.h
lib/devres.c