Lines Matching refs:addrmatch_dev
249 struct device *addrmatch_dev, *chancounts_dev; member
1162 pvt->addrmatch_dev = kzalloc(sizeof(*pvt->addrmatch_dev), GFP_KERNEL); in i7core_create_sysfs_devices()
1163 if (!pvt->addrmatch_dev) in i7core_create_sysfs_devices()
1166 pvt->addrmatch_dev->type = &addrmatch_type; in i7core_create_sysfs_devices()
1167 pvt->addrmatch_dev->bus = mci->dev.bus; in i7core_create_sysfs_devices()
1168 device_initialize(pvt->addrmatch_dev); in i7core_create_sysfs_devices()
1169 pvt->addrmatch_dev->parent = &mci->dev; in i7core_create_sysfs_devices()
1170 dev_set_name(pvt->addrmatch_dev, "inject_addrmatch"); in i7core_create_sysfs_devices()
1171 dev_set_drvdata(pvt->addrmatch_dev, mci); in i7core_create_sysfs_devices()
1173 edac_dbg(1, "creating %s\n", dev_name(pvt->addrmatch_dev)); in i7core_create_sysfs_devices()
1175 rc = device_add(pvt->addrmatch_dev); in i7core_create_sysfs_devices()
1205 device_del(pvt->addrmatch_dev); in i7core_create_sysfs_devices()
1207 put_device(pvt->addrmatch_dev); in i7core_create_sysfs_devices()
1222 device_del(pvt->addrmatch_dev); in i7core_delete_sysfs_devices()
1223 put_device(pvt->addrmatch_dev); in i7core_delete_sysfs_devices()