I'm trying to write a driver for a cardbus card.
I'm using a kernel (2.4.24) that has PCMCIA built into it.
Since it's a cardbus card, I'm using the register_driver function of cb_enabler.c. It compiles fine, but depmod fails since it cannot find register_driver.
I thought that would be compiled into the kernel?
Or do I have to compile in cb_enabler.c into my driver?
Where can I get more info on this? (I've read the programming howto.
Any help would be great!
The cb_enabler module is only part of the pcmcia-cs drivers; it is not part of the kernel PCMCIA implementation. With kernel PCMCIA, CardBus drivers are ordinary PCI drivers (with hotplug support). It should not be hard to modify your driver for this because conceptually, the hotplug PCI interface is similar to what cb_enabler provides. In the kernel source tree, look at Documentation/pci.txt for more information about writing a "new" PCI driver that supports hotplug.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.