handle->event_handler = NULL; 
int pcmcia_deregister_client(client_handle_t handle){	struct pcmcia_socket *s;	int i;	struct pcmcia_device *p_dev = handle_to_pdev(handle);	if (CHECK_HANDLE(handle))		return CS_BAD_HANDLE;	s = SOCKET(handle);	ds_dbg(1, "deregister_client(%p)\n", handle);	if (handle->state & (CLIENT_IRQ_REQ|CLIENT_IO_REQ|CLIENT_CONFIG_LOCKED))		goto warn_out;	for (i = 0; i < MAX_WIN; i++)		if (handle->state & CLIENT_WIN_REQ(i))			goto warn_out;	if (handle->state & CLIENT_STALE) {		handle->client_magic = 0;		handle->state &= ~CLIENT_STALE;		pcmcia_put_dev(p_dev);	} else {		handle->state = CLIENT_UNBOUND;		handle->event_handler = NULL;	}	return CS_SUCCESS; warn_out:	printk(KERN_WARNING "ds: deregister_client was called too early.\n");	return CS_IN_USE;} /* deregister_client */
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/1e212f3645a6b355de8c43a23376bc0e2ac49a63/ds.c/clean/drivers/pcmcia/ds.c