#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
+#include <pcmcia/cs_types.h>
+
struct device_driver
{
- char * name;
+ dev_info_t name;
};
#else
#include_next <linux/device.h>
/* driver registration */
static inline int pcmcia_register_driver(struct pcmcia_driver *driver)
{
- return register_pccard_driver(driver->drv.name, driver->attach, driver->detach);
+ return register_pccard_driver(&driver->drv.name, driver->attach, driver->detach);
};
static void inline pcmcia_unregister_driver(struct pcmcia_driver *driver)
{
- unregister_pccard_driver(driver->drv.name);
+ unregister_pccard_driver(&driver->drv.name);
};
static void inline cs_error(client_handle_t handle, int func, int ret)