state = (struct stv0297_state *) kmalloc(sizeof(struct stv0297_state), GFP_KERNEL); 
state = kmalloc(sizeof(struct stv0297_state), GFP_KERNEL); 
struct dvb_frontend *stv0297_attach(const struct stv0297_config *config,				    struct i2c_adapter *i2c, int pwm){	struct stv0297_state *state = NULL;	/* allocate memory for the internal state */	state = (struct stv0297_state *) kmalloc(sizeof(struct stv0297_state), GFP_KERNEL);	if (state == NULL)		goto error;	/* setup the state */	state->config = config;	state->i2c = i2c;	memcpy(&state->ops, &stv0297_ops, sizeof(struct dvb_frontend_ops));	state->base_freq = 0;	state->pwm = pwm;	/* check if the demod is there */	if ((stv0297_readreg(state, 0x80) & 0x70) != 0x20)		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/stv0297.c/clean/drivers/media/dvb/frontends/stv0297.c