diff options
| author | Wolfram Sang <[email protected]> | 2011-10-25 15:16:47 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2011-11-15 16:07:39 -0800 |
| commit | 72f8c0bfa0de64c68ee59f40eb9b2683bffffbb0 (patch) | |
| tree | 44fa0c66dbb41d9154e170d4d97455e5665a5f12 /tools/perf/scripts/python/bin | |
| parent | 571806a9f70fc4a4c575ab796555dfb401c2dfc1 (diff) | |
lib: devres: add convenience function to remap a resource
Almost every platform_driver does the three steps get_resource,
request_mem_region, ioremap. This does not only lead to a lot of code
duplication, but also a huge number of similar error strings and
inconsistent error codes on failure. So, introduce a helper function
which simplifies remapping a resource and make it hard to do something
wrong and add documentation for it.
Signed-off-by: Wolfram Sang <[email protected]>
Acked-by: Grant Likely <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions