Lines Matching refs:mci_pdev
89 static struct device *mci_pdev; variable
941 mci->dev.parent = mci_pdev; in edac_create_sysfs_mci_device()
1032 mci_pdev = kzalloc(sizeof(*mci_pdev), GFP_KERNEL); in edac_mc_sysfs_init()
1033 if (!mci_pdev) in edac_mc_sysfs_init()
1036 mci_pdev->bus = edac_get_sysfs_subsys(); in edac_mc_sysfs_init()
1037 mci_pdev->release = mc_attr_release; in edac_mc_sysfs_init()
1038 mci_pdev->init_name = "mc"; in edac_mc_sysfs_init()
1040 err = device_register(mci_pdev); in edac_mc_sysfs_init()
1042 edac_dbg(1, "failure: create device %s\n", dev_name(mci_pdev)); in edac_mc_sysfs_init()
1043 put_device(mci_pdev); in edac_mc_sysfs_init()
1047 edac_dbg(0, "device %s created\n", dev_name(mci_pdev)); in edac_mc_sysfs_init()
1054 device_unregister(mci_pdev); in edac_mc_sysfs_exit()