cx24116.c (d303b7c5b2660d93ba0dd2bf99b7dfa7bb93de73) | cx24116.c (2d3da59ff163b2aa805de0fc65ba933a735b00cd) |
---|---|
1/* 2 Conexant cx24116/cx24118 - DVBS/S2 Satellite demod/tuner driver 3 4 Copyright (C) 2006-2008 Steven Toth <stoth@hauppauge.com> 5 Copyright (C) 2006-2007 Georg Acher 6 Copyright (C) 2007-2008 Darron Broad 7 March 2007 8 Fixed some bugs. --- 1112 unchanged lines hidden (view full) --- 1121 struct i2c_adapter *i2c) 1122{ 1123 struct cx24116_state *state; 1124 int ret; 1125 1126 dprintk("%s\n", __func__); 1127 1128 /* allocate memory for the internal state */ | 1/* 2 Conexant cx24116/cx24118 - DVBS/S2 Satellite demod/tuner driver 3 4 Copyright (C) 2006-2008 Steven Toth <stoth@hauppauge.com> 5 Copyright (C) 2006-2007 Georg Acher 6 Copyright (C) 2007-2008 Darron Broad 7 March 2007 8 Fixed some bugs. --- 1112 unchanged lines hidden (view full) --- 1121 struct i2c_adapter *i2c) 1122{ 1123 struct cx24116_state *state; 1124 int ret; 1125 1126 dprintk("%s\n", __func__); 1127 1128 /* allocate memory for the internal state */ |
1129 state = kzalloc(sizeof(struct cx24116_state), GFP_KERNEL); | 1129 state = kzalloc(sizeof(*state), GFP_KERNEL); |
1130 if (state == NULL) 1131 goto error1; 1132 1133 state->config = config; 1134 state->i2c = i2c; 1135 1136 /* check if the demod is present */ 1137 ret = (cx24116_readreg(state, 0xFF) << 8) | --- 372 unchanged lines hidden --- | 1130 if (state == NULL) 1131 goto error1; 1132 1133 state->config = config; 1134 state->i2c = i2c; 1135 1136 /* check if the demod is present */ 1137 ret = (cx24116_readreg(state, 0xFF) << 8) | --- 372 unchanged lines hidden --- |