client_reg.Attributes = INFO_IO_CLIENT; 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 = &prism2_event; 
static dev_link_t *prism2_attach(void){	dev_link_t *link;	client_reg_t client_reg;	int ret;	link = kmalloc(sizeof(dev_link_t), GFP_KERNEL);	if (link == NULL)		return NULL;	memset(link, 0, sizeof(dev_link_t));	PDEBUG(DEBUG_HW, "%s: setting Vcc=33 (constant)\n", dev_info);	link->conf.Vcc = 33;	link->conf.IntType = INT_MEMORY_AND_IO;	/* register with CardServices */	link->next = dev_list;	dev_list = link;	client_reg.dev_info = &dev_info;	client_reg.Attributes = INFO_IO_CLIENT;	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 = &prism2_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);		prism2_detach(link);		return NULL;	}	return link;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/47e362cf6942de8b3a227929bf8bab578d92ad49/hostap_cs.c/clean/drivers/net/wireless/hostap/hostap_cs.c