left out. If you compile with PCMCIA_DEBUG=0, the debug code will
be present but disabled.
*/
-#ifdef FT_DEBUG
-#define DEBUG(n, args...) printk(KERN_DEBUG args)
-#else
-#define DEBUG(n, args...)
-#endif
/*====================================================================*/
static int ft1000_attach(struct pcmcia_device *link)
{
- DEBUG(0, "ft1000_cs: ft1000_attach()\n");
-
link->priv = NULL;
link->config_flags |= CONF_ENABLE_IRQ | CONF_AUTO_SET_IO;
{
struct net_device *dev = link->priv;
- DEBUG(0, "ft1000_cs: ft1000_detach(0x%p)\n", link);
-
- if (link == NULL) {
- DEBUG(0,"ft1000_cs:ft1000_detach: Got a NULL pointer\n");
- return;
- }
-
if (dev) {
stop_ft1000_card(dev);
}
static void ft1000_release(struct pcmcia_device * link)
{
- DEBUG(0, "ft1000_cs: ft1000_release(0x%p)\n", link);
-
/*
If the device is currently in use, we won't release until it
is actually closed, because until then, we can't be sure that
static int __init init_ft1000_cs(void)
{
- DEBUG(0, "ft1000_cs: loading\n");
return pcmcia_register_driver(&ft1000_cs_driver);
}
static void __exit exit_ft1000_cs(void)
{
- DEBUG(0, "ft1000_cs: unloading\n");
pcmcia_unregister_driver(&ft1000_cs_driver);
}