client_reg.EventMask = CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL | CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET | CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME; client_reg.event_handler = &sl811_cs_event; 
static dev_link_t *sl811_cs_attach(void){	local_info_t *local;	dev_link_t *link;	client_reg_t client_reg;	int ret;	local = kmalloc(sizeof(local_info_t), GFP_KERNEL);	if (!local)		return NULL;	memset(local, 0, sizeof(local_info_t));	link = &local->link;	link->priv = local;	/* Initialize */	link->irq.Attributes = IRQ_TYPE_EXCLUSIVE;	link->irq.IRQInfo1 = IRQ_INFO2_VALID|IRQ_LEVEL_ID;	link->irq.Handler = NULL;	link->conf.Attributes = 0;	link->conf.Vcc = 33;	link->conf.IntType = INT_MEMORY_AND_IO;	/* Register with Card Services */	link->next = dev_list;	dev_list = link;	client_reg.dev_info = (dev_info_t *) &driver_name;	client_reg.Attributes = INFO_IO_CLIENT | INFO_CARD_SHARE;	client_reg.EventMask =		CS_EVENT_CARD_INSERTION | CS_EVENT_CARD_REMOVAL |		CS_EVENT_RESET_PHYSICAL | CS_EVENT_CARD_RESET |		CS_EVENT_PM_SUSPEND | CS_EVENT_PM_RESUME;	client_reg.event_handler = &sl811_cs_event;	client_reg.Version = 0x0210;	client_reg.event_callback_args.client_data = link;	ret = pcmcia_register_client(&link->handle, &client_reg);	if (ret != CS_SUCCESS) {		cs_error(link->handle, RegisterClient, ret);		sl811_cs_detach(link);		return NULL;	}	return link;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1e212f3645a6b355de8c43a23376bc0e2ac49a63/sl811_cs.c/buggy/drivers/usb/host/sl811_cs.c