state->errmode = STATUS_BER; 
struct dvb_frontend* stv0299_attach(const struct stv0299_config* config,				    struct i2c_adapter* i2c){	struct stv0299_state* state = NULL;	int id;	/* allocate memory for the internal state */	state = kmalloc(sizeof(struct stv0299_state), GFP_KERNEL);	if (state == NULL) goto error;	/* setup the state */	state->config = config;	state->i2c = i2c;	memcpy(&state->ops, &stv0299_ops, sizeof(struct dvb_frontend_ops));	state->initialised = 0;	state->tuner_frequency = 0;	state->symbol_rate = 0;	state->fec_inner = 0;	state->errmode = STATUS_BER;	/* check if the demod is there */	stv0299_writeregI(state, 0x02, 0x34); /* standby off */	msleep(200);	id = stv0299_readreg(state, 0x00);	/* register 0x00 contains 0xa1 for STV0299 and STV0299B */	/* register 0x00 might contain 0x80 when returning from standby */	if (id != 0xa1 && id != 0x80) 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/78639a3f81d14117d1841476771d7a4736e7b9d1/stv0299.c/buggy/drivers/media/dvb/frontends/stv0299.c