]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/edac/edac_mc_sysfs.c
EDAC: Remove arbitrary limit on number of channels
[karo-tx-linux.git] / drivers / edac / edac_mc_sysfs.c
index 112d63ad115470529c18e3c6d876cfdda000a9e5..33df7d93c857b6fcd65b4b136e3e7eaf0cf1ea62 100644 (file)
@@ -307,8 +307,6 @@ static struct device_type csrow_attr_type = {
  *
  */
 
-#define EDAC_NR_CHANNELS       6
-
 DEVICE_CHANNEL(ch0_dimm_label, S_IRUGO | S_IWUSR,
        channel_dimm_label_show, channel_dimm_label_store, 0);
 DEVICE_CHANNEL(ch1_dimm_label, S_IRUGO | S_IWUSR,
@@ -403,9 +401,6 @@ static inline int nr_pages_per_csrow(struct csrow_info *csrow)
 static int edac_create_csrow_object(struct mem_ctl_info *mci,
                                    struct csrow_info *csrow, int index)
 {
-       if (csrow->nr_channels > EDAC_NR_CHANNELS)
-               return -ENODEV;
-
        csrow->dev.type = &csrow_attr_type;
        csrow->dev.bus = mci->bus;
        csrow->dev.groups = csrow_dev_groups;