diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-01-06 14:03:03 +0100 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-02-17 17:37:31 +0100 |
commit | a3ac9af56c14c366a76fb4916995e57392c7b7d5 (patch) | |
tree | 5e3bcfa600f33d6327347c8bb567d1196371879d /drivers/pcmcia/pcmcia_resource.c | |
parent | 6e7b51a733fde86d3be748543215a69da04d5bb7 (diff) | |
download | blackbird-op-linux-a3ac9af56c14c366a76fb4916995e57392c7b7d5.tar.gz blackbird-op-linux-a3ac9af56c14c366a76fb4916995e57392c7b7d5.zip |
pcmcia: remove remaining rsrc_mgr indirections
Move rsrc_mgr indirections only used by the pcmcia module to the
pcmcia module.
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/pcmcia_resource.c')
-rw-r--r-- | drivers/pcmcia/pcmcia_resource.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c index 880b0b63b6a3..8ceb7abc580a 100644 --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c @@ -60,6 +60,22 @@ static struct resource *pcmcia_find_io_region(unsigned long base, int num, return NULL; } +int pcmcia_validate_mem(struct pcmcia_socket *s) +{ + if (s->resource_ops->validate_mem) + return s->resource_ops->validate_mem(s); + /* if there is no callback, we can assume that everything is OK */ + return 0; +} + +struct resource *pcmcia_find_mem_region(u_long base, u_long num, u_long align, + int low, struct pcmcia_socket *s) +{ + if (s->resource_ops->find_mem) + return s->resource_ops->find_mem(base, num, align, low, s); + return NULL; +} + /** alloc_io_space * |