]> git.karo-electronics.de Git - mv-sheeva.git/commit
resources: Add lookup_resource()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 7 May 2011 18:53:16 +0000 (20:53 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 30 Jul 2011 19:21:39 +0000 (21:21 +0200)
commit1c388919d89ca35741e9c4d3255adf87f76f0c06
tree3858d97ce2f91cdf6ec3badafbf66ef058e178a7
parent88efd0bbc0fe403a9948e6f94cc48b9f15ee4861
resources: Add lookup_resource()

Add a function to find an existing resource by a resource start address.
This allows to implement simple allocators (with a malloc/free-alike API)
on top of the resource system.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
include/linux/ioport.h
kernel/resource.c