[PATCH v2] pcmcia: export pcmcia_bus_type
Olof Johansson
olof at lixom.net
Sat May 12 14:06:58 EDT 2007
Export pcmcia_bus_type so module-based drivers can register bus notifiers,
and add it to what seems to be the main include file.
Signed-off-by: Olof Johansson <olof at lixom.net>
---
Missed the include file in the last patch.
Index: 2.6.21/drivers/pcmcia/ds.c
===================================================================
--- 2.6.21.orig/drivers/pcmcia/ds.c
+++ 2.6.21/drivers/pcmcia/ds.c
@@ -1404,6 +1404,7 @@ struct bus_type pcmcia_bus_type = {
.suspend = pcmcia_dev_suspend,
.resume = pcmcia_dev_resume,
};
+EXPORT_SYMBOL(pcmcia_bus_type);
static int __init init_pcmcia_bus(void)
Index: 2.6.21/include/pcmcia/ss.h
===================================================================
--- 2.6.21.orig/include/pcmcia/ss.h
+++ 2.6.21/include/pcmcia/ss.h
@@ -298,6 +298,7 @@ extern int pcmcia_register_socket(struct
extern void pcmcia_unregister_socket(struct pcmcia_socket *socket);
extern struct class pcmcia_socket_class;
+extern struct bus_type pcmcia_bus_type;
/* socket drivers are expected to use these callbacks in their .drv struct */
extern int pcmcia_socket_dev_suspend(struct device *dev, pm_message_t state);
More information about the linux-pcmcia
mailing list