EDAC: Remove dynamic attributes from edac_device_alloc_ctl_info()
[linux-2.6-block.git] / drivers / edac / thunderx_edac.c
index 90d46e5c4ff069752e918de794194d4095986799..fab9891e569acaea14fad1dd9912f2fa59fd4633 100644 (file)
@@ -1365,8 +1365,7 @@ static int thunderx_ocx_probe(struct pci_dev *pdev,
        idx = edac_device_alloc_index();
        snprintf(name, sizeof(name), "OCX%d", idx);
        edac_dev = edac_device_alloc_ctl_info(sizeof(struct thunderx_ocx),
-                                             name, 1, "CCPI", 1,
-                                             0, NULL, 0, idx);
+                                             name, 1, "CCPI", 1, 0, idx);
        if (!edac_dev) {
                dev_err(&pdev->dev, "Cannot allocate EDAC device\n");
                return -ENOMEM;
@@ -2004,8 +2003,7 @@ static int thunderx_l2c_probe(struct pci_dev *pdev,
        snprintf(name, sizeof(name), fmt, idx);
 
        edac_dev = edac_device_alloc_ctl_info(sizeof(struct thunderx_l2c),
-                                             name, 1, "L2C", 1, 0,
-                                             NULL, 0, idx);
+                                             name, 1, "L2C", 1, 0, idx);
        if (!edac_dev) {
                dev_err(&pdev->dev, "Cannot allocate EDAC device\n");
                return -ENOMEM;