hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/edac/fsl_ddr_edac.c
....@@ -2,8 +2,8 @@
22 * Freescale Memory Controller kernel module
33 *
44 * Support Power-based SoCs including MPC85xx, MPC86xx, MPC83xx and
5
- * ARM-based Layerscape SoCs including LS2xxx. Originally split
6
- * out from mpc85xx_edac EDAC driver.
5
+ * ARM-based Layerscape SoCs including LS2xxx and LS1021A. Originally
6
+ * split out from mpc85xx_edac EDAC driver.
77 *
88 * Parts Copyrighted (c) 2013 by Freescale Semiconductor, Inc.
99 *
....@@ -51,6 +51,7 @@
5151 iowrite32be(value, addr);
5252 }
5353
54
+#ifdef CONFIG_EDAC_DEBUG
5455 /************************ MC SYSFS parts ***********************************/
5556
5657 #define to_mci(k) container_of(k, struct mem_ctl_info, dev)
....@@ -151,11 +152,14 @@
151152 fsl_mc_inject_data_lo_show, fsl_mc_inject_data_lo_store);
152153 static DEVICE_ATTR(inject_ctrl, S_IRUGO | S_IWUSR,
153154 fsl_mc_inject_ctrl_show, fsl_mc_inject_ctrl_store);
155
+#endif /* CONFIG_EDAC_DEBUG */
154156
155157 static struct attribute *fsl_ddr_dev_attrs[] = {
158
+#ifdef CONFIG_EDAC_DEBUG
156159 &dev_attr_inject_data_hi.attr,
157160 &dev_attr_inject_data_lo.attr,
158161 &dev_attr_inject_ctrl.attr,
162
+#endif
159163 NULL
160164 };
161165