 decoder->input = SAA7191_INPUT_COMPOSITE; decoder->norm = SAA7191_NORM_PAL;  err = saa7191_autodetect_norm(client); if (err && (err != -EBUSY)) { printk(KERN_ERR "SAA7191: Signal auto-detection failed\n"); } 
static int saa7191_attach(struct i2c_adapter *adap, int addr, int kind){	int err = 0;	struct saa7191 *decoder;	struct i2c_client *client;	printk(KERN_INFO "Philips SAA7191 driver version %s\n",	       SAA7191_MODULE_VERSION);	client = kmalloc(sizeof(*client), GFP_KERNEL);	if (!client)		return -ENOMEM;	decoder = kmalloc(sizeof(*decoder), GFP_KERNEL);	if (!decoder) {		err = -ENOMEM;		goto out_free_client;	}	memset(client, 0, sizeof(struct i2c_client));	memset(decoder, 0, sizeof(struct saa7191));	client->addr = addr;	client->adapter = adap;	client->driver = &i2c_driver_saa7191;	client->flags = 0;	strcpy(client->name, "saa7191 client");	i2c_set_clientdata(client, decoder);	decoder->client = client;	err = i2c_attach_client(client);	if (err)		goto out_free_decoder;	decoder->input = SAA7191_INPUT_COMPOSITE;	decoder->norm = SAA7191_NORM_AUTO;	err = saa7191_write_block(client, sizeof(initseq),				  (unsigned char *)initseq);	if (err) {		printk(KERN_ERR "SAA7191 initialization failed\n");		goto out_detach_client;	}	printk(KERN_INFO "SAA7191 initialized\n");	return 0;out_detach_client:	i2c_detach_client(client);out_free_decoder:	kfree(decoder);out_free_client:	kfree(client);	return err;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/a637a114f36b94a1ad8b9867f43bac0414958420/saa7191.c/buggy/drivers/media/video/saa7191.c