Lines Matching refs:sds
102 struct ce4100_devices *sds; in ce4100_i2c_probe() local
112 sds = kzalloc(sizeof(*sds), GFP_KERNEL); in ce4100_i2c_probe()
113 if (!sds) { in ce4100_i2c_probe()
118 for (i = 0; i < ARRAY_SIZE(sds->pdev); i++) { in ce4100_i2c_probe()
119 sds->pdev[i] = add_i2c_device(dev, i); in ce4100_i2c_probe()
120 if (IS_ERR(sds->pdev[i])) { in ce4100_i2c_probe()
121 ret = PTR_ERR(sds->pdev[i]); in ce4100_i2c_probe()
123 platform_device_unregister(sds->pdev[i]); in ce4100_i2c_probe()
127 pci_set_drvdata(dev, sds); in ce4100_i2c_probe()
131 kfree(sds); in ce4100_i2c_probe()
139 struct ce4100_devices *sds; in ce4100_i2c_remove() local
142 sds = pci_get_drvdata(dev); in ce4100_i2c_remove()
144 for (i = 0; i < ARRAY_SIZE(sds->pdev); i++) in ce4100_i2c_remove()
145 platform_device_unregister(sds->pdev[i]); in ce4100_i2c_remove()
148 kfree(sds); in ce4100_i2c_remove()