Files
linux/lib
Benjamin Herrenschmidt 80d62ecfaa UPSTREAM: devres: Add devm_of_iomap()
There are still quite a few cases where a device might want
to get to a different node of the device-tree, obtain the
resources and map them.

We have of_iomap() and of_io_request_and_map() but they both
have shortcomings, such as not returning the size of the
resource found (which can be useful) and not being "managed".

This adds a devm_of_iomap() that provides all of these and
should probably replace uses of the above in most drivers.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
(cherry picked from commit d5e838275c)

Change-Id: I5d68c3e23637c5e83e5f2bed3a1aa2c654d7d6a1
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2018-08-23 17:48:43 +08:00
..
2014-10-09 11:35:48 +03:00
2015-11-11 15:57:28 +08:00
2018-03-03 10:19:42 +01:00
2018-04-25 16:21:55 +08:00
2015-07-27 14:06:24 +02:00
2011-03-11 14:25:50 +00:00
2015-11-11 15:57:28 +08:00
2015-11-23 09:44:58 +01:00
2015-05-28 11:31:52 +09:30
2015-11-11 15:57:28 +08:00
2011-10-29 21:20:22 +02:00
2006-06-25 10:01:20 -07:00
2006-06-25 10:01:20 -07:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2018-08-23 17:48:43 +08:00
2015-11-09 15:11:24 -08:00
2015-11-11 15:57:28 +08:00
2012-10-06 03:04:57 +09:00
2014-08-06 18:01:25 -07:00
2015-11-11 15:57:28 +08:00
2014-05-05 09:09:14 +02:00
2016-09-24 10:07:43 +02:00
2018-04-25 16:21:55 +08:00
2014-08-08 15:57:25 -07:00
2018-04-25 16:21:55 +08:00
2015-02-12 18:54:15 -08:00
2012-07-30 17:25:16 -07:00
2014-06-25 17:45:43 -07:00
2015-11-11 15:57:28 +08:00
2015-02-12 18:54:16 -08:00
2015-11-11 15:57:28 +08:00
2015-11-11 15:57:28 +08:00
2015-03-23 22:12:08 -04:00
2015-06-25 17:00:40 -07:00
2013-04-29 18:28:42 -07:00
2018-04-25 16:21:55 +08:00