state = (struct ves1x93_state*) kmalloc(sizeof(struct ves1x93_state), GFP_KERNEL); 
state = kmalloc(sizeof(struct ves1x93_state), GFP_KERNEL); 
struct dvb_frontend* ves1x93_attach(const struct ves1x93_config* config,				    struct i2c_adapter* i2c){	struct ves1x93_state* state = NULL;	u8 identity;	/* allocate memory for the internal state */	state = (struct ves1x93_state*) kmalloc(sizeof(struct ves1x93_state), GFP_KERNEL);	if (state == NULL) goto error;	/* setup the state */	state->config = config;	state->i2c = i2c;	memcpy(&state->ops, &ves1x93_ops, sizeof(struct dvb_frontend_ops));	state->inversion = INVERSION_OFF;	/* check if the demod is there + identify it */	identity = ves1x93_readreg(state, 0x1e);	switch (identity) {	case 0xdc: /* VES1893A rev1 */		printk("ves1x93: Detected ves1893a rev1\n");		state->demod_type = DEMOD_VES1893;		state->init_1x93_tab = init_1893_tab;		state->init_1x93_wtab = init_1893_wtab;		state->tab_size = sizeof(init_1893_tab);		break;	case 0xdd: /* VES1893A rev2 */		printk("ves1x93: Detected ves1893a rev2\n");		state->demod_type = DEMOD_VES1893;		state->init_1x93_tab = init_1893_tab;		state->init_1x93_wtab = init_1893_wtab;		state->tab_size = sizeof(init_1893_tab);		break;	case 0xde: /* VES1993 */		printk("ves1x93: Detected ves1993\n");		state->demod_type = DEMOD_VES1993;		state->init_1x93_tab = init_1993_tab;		state->init_1x93_wtab = init_1993_wtab;		state->tab_size = sizeof(init_1993_tab);		break;	default:		goto error;	}	/* create dvb_frontend */	state->frontend.ops = &state->ops;	state->frontend.demodulator_priv = state;	return &state->frontend;error:	kfree(state);	return NULL;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b8742700f13163ffa00cddce2a3c940b9ab2ab5a/ves1x93.c/buggy/drivers/media/dvb/frontends/ves1x93.c