state = (struct mt312_state*) kmalloc(sizeof(struct mt312_state), GFP_KERNEL); 
state = kmalloc(sizeof(struct mt312_state), GFP_KERNEL); 
struct dvb_frontend* mt312_attach(const struct mt312_config* config,				  struct i2c_adapter* i2c){	struct mt312_state* state = NULL;	/* allocate memory for the internal state */	state = (struct mt312_state*) kmalloc(sizeof(struct mt312_state), GFP_KERNEL);	if (state == NULL)		goto error;	/* setup the state */	state->config = config;	state->i2c = i2c;	memcpy(&state->ops, &vp310_mt312_ops, sizeof(struct dvb_frontend_ops));	strcpy(state->ops.info.name, "Zarlink MT312 DVB-S");	/* check if the demod is there */	if (mt312_readreg(state, ID, &state->id) < 0)		goto error;	if (state->id != ID_MT312) {		goto error;	}	/* create dvb_frontend */	state->frequency = 60;	state->frontend.ops = &state->ops;	state->frontend.demodulator_priv = state;	return &state->frontend;error:	if (state)		kfree(state);	return NULL;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b8742700f13163ffa00cddce2a3c940b9ab2ab5a/mt312.c/clean/drivers/media/dvb/frontends/mt312.c