The last change to das08_cs.c on Feb 5 breaks on 2.4, though the change
itself was not unreasonable (it saves a few bytes at least). The
problem is that the change was incompatible with the version of struct
device_driver defined in comedi's linux/device.h compatibility header.
In the "real" version of struct device_driver, the "name" member is a
"char *", but in the compatibility version it's a "dev_info_t", which is
a "char[32]".
The attached patch sorts it out in the compatibility headers.
struct device_driver
{
- dev_info_t name;
+ char *name;
};
typedef void class_simple;
/* 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((dev_info_t*)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((dev_info_t*)driver->drv.name);
};
static void inline cs_error(client_handle_t handle, int func, int ret)