client_reg.EventMask = CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET | CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL | CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME; client_reg.event_handler = &pcmciamtd_event; 
static dev_link_t *pcmciamtd_attach(void){	struct pcmciamtd_dev *dev;	dev_link_t *link;	client_reg_t client_reg;	int ret;	/* Create new memory card device */	dev = kmalloc(sizeof(*dev), GFP_KERNEL);	if (!dev) return NULL;	DEBUG(1, "dev=0x%p", dev);	memset(dev, 0, sizeof(*dev));	link = &dev->link;	link->priv = dev;	link->conf.Attributes = 0;	link->conf.IntType = INT_MEMORY;	link->next = dev_list;	dev_list = link;	/* Register with Card Services */	client_reg.dev_info = &dev_info;	client_reg.EventMask =		CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET |		CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL |		CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME;	client_reg.event_handler = &pcmciamtd_event;	client_reg.Version = 0x0210;	client_reg.event_callback_args.client_data = link;	DEBUG(2, "Calling RegisterClient");	ret = pcmcia_register_client(&link->handle, &client_reg);	if (ret != 0) {		cs_error(link->handle, RegisterClient, ret);		pcmciamtd_detach(link);		return NULL;	}	DEBUG(2, "link = %p", link);	return link;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1e212f3645a6b355de8c43a23376bc0e2ac49a63/pcmciamtd.c/clean/drivers/mtd/maps/pcmciamtd.c