pcmcia: clarify alloc_io_space, move it to resource handlers
Clean up the alloc_io_space() function by moving most of it to
the actual resource_ops. This allows for a bit less re-directions.
Future cleanups will follow, and will make up for the code
duplication currently present between rsrc_iodyn and rsrc_nonstatic
(which are hardly ever built at the same time anyway, therefore no
increase in built size).
Signed-off-by:
Dominik Brodowski <linux@dominikbrodowski.net>
Showing
- drivers/pcmcia/cs_internal.h 5 additions, 7 deletionsdrivers/pcmcia/cs_internal.h
- drivers/pcmcia/pcmcia_resource.c 6 additions, 65 deletionsdrivers/pcmcia/pcmcia_resource.c
- drivers/pcmcia/rsrc_iodyn.c 78 additions, 14 deletionsdrivers/pcmcia/rsrc_iodyn.c
- drivers/pcmcia/rsrc_mgr.c 12 additions, 2 deletionsdrivers/pcmcia/rsrc_mgr.c
- drivers/pcmcia/rsrc_nonstatic.c 94 additions, 11 deletionsdrivers/pcmcia/rsrc_nonstatic.c
- include/pcmcia/ds.h 9 additions, 2 deletionsinclude/pcmcia/ds.h
Loading
Please register or sign in to comment