summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2021-09-16 21:15:58 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2021-09-23 10:25:59 +0300
commitc822310725ee41af663de2448094155d442ff871 (patch)
treef335ea75047366a1ad7d052e820da101466c71ad /include
parent3229b906fb35b63515f0c703b917357c83e1ea22 (diff)
downloadlinux-c822310725ee41af663de2448094155d442ff871.tar.xz
lib: devres: Add managed arch_io_reserve_memtype_wc()
Add devm_arch_io_reserve_memtype_wc() as managed wrapper around arch_io_reserve_memtype_wc(). Useful for several graphics drivers that set framebuffer memory to write combining. v2: * fix typo in commit description Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210916181601.9146-3-tzimmermann@suse.de
Diffstat (limited to 'include')
-rw-r--r--include/linux/io.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/io.h b/include/linux/io.h
index fcd8ea79c5df..5fc800390fe4 100644
--- a/include/linux/io.h
+++ b/include/linux/io.h
@@ -168,4 +168,7 @@ static inline void arch_io_free_memtype_wc(resource_size_t base,
}
#endif
+int devm_arch_io_reserve_memtype_wc(struct device *dev, resource_size_t start,
+ resource_size_t size);
+
#endif /* _LINUX_IO_H */