Lines Matching refs:s4882_adapter
32 static struct i2c_adapter *s4882_adapter; variable
163 if (!(s4882_adapter = kcalloc(5, sizeof(struct i2c_adapter), in amd756_s4882_init()
177 s4882_adapter[0] = amd756_smbus; in amd756_s4882_init()
178 s4882_adapter[0].algo = s4882_algo; in amd756_s4882_init()
179 s4882_adapter[0].dev.parent = amd756_smbus.dev.parent; in amd756_s4882_init()
182 s4882_adapter[i] = amd756_smbus; in amd756_s4882_init()
183 snprintf(s4882_adapter[i].name, sizeof(s4882_adapter[i].name), in amd756_s4882_init()
185 s4882_adapter[i].algo = s4882_algo+i; in amd756_s4882_init()
186 s4882_adapter[i].dev.parent = amd756_smbus.dev.parent; in amd756_s4882_init()
195 error = i2c_add_adapter(s4882_adapter+i); in amd756_s4882_init()
201 i2c_del_adapter(s4882_adapter+i); in amd756_s4882_init()
212 kfree(s4882_adapter); in amd756_s4882_init()
213 s4882_adapter = NULL; in amd756_s4882_init()
223 if (s4882_adapter) { in amd756_s4882_exit()
227 i2c_del_adapter(s4882_adapter+i); in amd756_s4882_exit()
228 kfree(s4882_adapter); in amd756_s4882_exit()
229 s4882_adapter = NULL; in amd756_s4882_exit()