mb86a20s.c (c38e8657a471e9af42b86009e5d3085031b41fda) | mb86a20s.c (2d3da59ff163b2aa805de0fc65ba933a735b00cd) |
---|---|
1/* 2 * Fujitu mb86a20s ISDB-T/ISDB-Tsb Module driver 3 * 4 * Copyright (C) 2010-2013 Mauro Carvalho Chehab 5 * Copyright (C) 2009-2010 Douglas Landgraf <dougsland@redhat.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as --- 2057 unchanged lines hidden (view full) --- 2066 struct i2c_adapter *i2c) 2067{ 2068 struct mb86a20s_state *state; 2069 u8 rev; 2070 2071 dev_dbg(&i2c->dev, "%s called.\n", __func__); 2072 2073 /* allocate memory for the internal state */ | 1/* 2 * Fujitu mb86a20s ISDB-T/ISDB-Tsb Module driver 3 * 4 * Copyright (C) 2010-2013 Mauro Carvalho Chehab 5 * Copyright (C) 2009-2010 Douglas Landgraf <dougsland@redhat.com> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as --- 2057 unchanged lines hidden (view full) --- 2066 struct i2c_adapter *i2c) 2067{ 2068 struct mb86a20s_state *state; 2069 u8 rev; 2070 2071 dev_dbg(&i2c->dev, "%s called.\n", __func__); 2072 2073 /* allocate memory for the internal state */ |
2074 state = kzalloc(sizeof(struct mb86a20s_state), GFP_KERNEL); | 2074 state = kzalloc(sizeof(*state), GFP_KERNEL); |
2075 if (!state) 2076 goto error; 2077 2078 /* setup the state */ 2079 state->config = config; 2080 state->i2c = i2c; 2081 2082 /* create dvb_frontend */ --- 55 unchanged lines hidden --- | 2075 if (!state) 2076 goto error; 2077 2078 /* setup the state */ 2079 state->config = config; 2080 state->i2c = i2c; 2081 2082 /* create dvb_frontend */ --- 55 unchanged lines hidden --- |