Lines Matching refs:s4985_adapter
30 static struct i2c_adapter *s4985_adapter; variable
158 s4985_adapter = kcalloc(5, sizeof(struct i2c_adapter), GFP_KERNEL); in nforce2_s4985_init()
159 if (!s4985_adapter) { in nforce2_s4985_init()
172 s4985_adapter[0] = *nforce2_smbus; in nforce2_s4985_init()
173 s4985_adapter[0].algo = s4985_algo; in nforce2_s4985_init()
174 s4985_adapter[0].dev.parent = nforce2_smbus->dev.parent; in nforce2_s4985_init()
177 s4985_adapter[i] = *nforce2_smbus; in nforce2_s4985_init()
178 snprintf(s4985_adapter[i].name, sizeof(s4985_adapter[i].name), in nforce2_s4985_init()
180 s4985_adapter[i].algo = s4985_algo + i; in nforce2_s4985_init()
181 s4985_adapter[i].dev.parent = nforce2_smbus->dev.parent; in nforce2_s4985_init()
190 error = i2c_add_adapter(s4985_adapter + i); in nforce2_s4985_init()
196 i2c_del_adapter(s4985_adapter + i); in nforce2_s4985_init()
207 kfree(s4985_adapter); in nforce2_s4985_init()
208 s4985_adapter = NULL; in nforce2_s4985_init()
218 if (s4985_adapter) { in nforce2_s4985_exit()
222 i2c_del_adapter(s4985_adapter+i); in nforce2_s4985_exit()
223 kfree(s4985_adapter); in nforce2_s4985_exit()
224 s4985_adapter = NULL; in nforce2_s4985_exit()