if ((result = dvb_ca_en50221_init(budget_av->budget.dvb_adapter, 
if ((result = dvb_ca_en50221_init(&budget_av->budget.dvb_adapter, 
static int ciintf_init(struct budget_av *budget_av){	struct saa7146_dev *saa = budget_av->budget.dev;	int result;	memset(&budget_av->ca, 0, sizeof(struct dvb_ca_en50221));	/* setup GPIOs */	saa7146_setgpio(saa, 1, SAA7146_GPIO_OUTHI);	saa7146_setgpio(saa, 2, SAA7146_GPIO_OUTLO);	saa7146_setgpio(saa, 3, SAA7146_GPIO_OUTLO);	/* Reset the card */	saa7146_setgpio(saa, 0, SAA7146_GPIO_OUTHI);	msleep(50);	saa7146_setgpio(saa, 0, SAA7146_GPIO_OUTLO);	msleep(100);	/* Enable DEBI pins */	saa7146_write(saa, MC1, saa7146_read(saa, MC1) | (0x800 << 16) | 0x800);	/* register CI interface */	budget_av->ca.owner = THIS_MODULE;	budget_av->ca.read_attribute_mem = ciintf_read_attribute_mem;	budget_av->ca.write_attribute_mem = ciintf_write_attribute_mem;	budget_av->ca.read_cam_control = ciintf_read_cam_control;	budget_av->ca.write_cam_control = ciintf_write_cam_control;	budget_av->ca.slot_reset = ciintf_slot_reset;	budget_av->ca.slot_shutdown = ciintf_slot_shutdown;	budget_av->ca.slot_ts_enable = ciintf_slot_ts_enable;	budget_av->ca.poll_slot_status = ciintf_poll_slot_status;	budget_av->ca.data = budget_av;	if ((result = dvb_ca_en50221_init(budget_av->budget.dvb_adapter,					  &budget_av->ca, 0, 1)) != 0) {		printk("budget_av: CI interface detected, but initialisation failed.\n");		goto error;	}	// success!	printk("ciintf_init: CI interface initialised\n");	budget_av->budget.ci_present = 1;	return 0;error:	saa7146_write(saa, MC1, saa7146_read(saa, MC1) | (0x800 << 16));	return result;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/fdc53a6dbfea18e621dd23ed5cfb160837d7ce52/budget-av.c/buggy/drivers/media/dvb/ttpci/budget-av.c