pcmcia: do not use resource manager on !PCMCIA
If only CardBus cards are used, but not PCMCIA cards, we do not need the extensive resource management functions provided for by rsrc_nonstatic.c (~240K). Tested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>hifive-unleashed-5.1
parent
a3ac9af56c
commit
3a86e1807a
|
@ -84,7 +84,7 @@ config YENTA
|
||||||
tristate "CardBus yenta-compatible bridge support"
|
tristate "CardBus yenta-compatible bridge support"
|
||||||
depends on PCI
|
depends on PCI
|
||||||
select CARDBUS if !EMBEDDED
|
select CARDBUS if !EMBEDDED
|
||||||
select PCCARD_NONSTATIC
|
select PCCARD_NONSTATIC if PCMCIA
|
||||||
---help---
|
---help---
|
||||||
This option enables support for CardBus host bridges. Virtually
|
This option enables support for CardBus host bridges. Virtually
|
||||||
all modern PCMCIA bridges are CardBus compatible. A "bridge" is
|
all modern PCMCIA bridges are CardBus compatible. A "bridge" is
|
||||||
|
@ -162,7 +162,7 @@ config TCIC
|
||||||
config PCMCIA_M8XX
|
config PCMCIA_M8XX
|
||||||
tristate "MPC8xx PCMCIA support"
|
tristate "MPC8xx PCMCIA support"
|
||||||
depends on PCMCIA && PPC && 8xx
|
depends on PCMCIA && PPC && 8xx
|
||||||
select PCCARD_IODYN
|
select PCCARD_IODYN if PCMCIA
|
||||||
help
|
help
|
||||||
Say Y here to include support for PowerPC 8xx series PCMCIA
|
Say Y here to include support for PowerPC 8xx series PCMCIA
|
||||||
controller.
|
controller.
|
||||||
|
|
|
@ -263,10 +263,20 @@ struct pcmcia_socket {
|
||||||
* - pccard_nonstatic_ops iomem and ioport areas are assigned dynamically.
|
* - pccard_nonstatic_ops iomem and ioport areas are assigned dynamically.
|
||||||
* If this option is selected, use
|
* If this option is selected, use
|
||||||
* "select PCCARD_NONSTATIC" in Kconfig.
|
* "select PCCARD_NONSTATIC" in Kconfig.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
extern struct pccard_resource_ops pccard_static_ops;
|
extern struct pccard_resource_ops pccard_static_ops;
|
||||||
|
#if defined(CONFIG_PCMCIA) || defined(CONFIG_PCMCIA_MODULE)
|
||||||
extern struct pccard_resource_ops pccard_iodyn_ops;
|
extern struct pccard_resource_ops pccard_iodyn_ops;
|
||||||
extern struct pccard_resource_ops pccard_nonstatic_ops;
|
extern struct pccard_resource_ops pccard_nonstatic_ops;
|
||||||
|
#else
|
||||||
|
/* If PCMCIA is not used, but only CARDBUS, these functions are not used
|
||||||
|
* at all. Therefore, do not use the large (240K!) rsrc_nonstatic module
|
||||||
|
*/
|
||||||
|
#define pccard_iodyn_ops pccard_static_ops
|
||||||
|
#define pccard_nonstatic_ops pccard_static_ops
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* socket drivers are expected to use these callbacks in their .drv struct */
|
/* socket drivers are expected to use these callbacks in their .drv struct */
|
||||||
extern int pcmcia_socket_dev_suspend(struct device *dev);
|
extern int pcmcia_socket_dev_suspend(struct device *dev);
|
||||||
|
|
Loading…
Reference in New Issue