Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c44696ff authored by Tony Luck's avatar Tony Luck Committed by Mauro Carvalho Chehab
Browse files

EDAC: Remove arbitrary limit on number of channels



Currently set to "6", but the reset of the code will dynamically
allocate as needed.  We need to go to "8" today, but drop the check
completely to save doing this again when we need even larger numbers.

Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
Acked-by: default avatarAristeu Rozanski <aris@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent c65b99f0
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -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,
DEVICE_CHANNEL(ch0_dimm_label, S_IRUGO | S_IWUSR,
	channel_dimm_label_show, channel_dimm_label_store, 0);
	channel_dimm_label_show, channel_dimm_label_store, 0);
DEVICE_CHANNEL(ch1_dimm_label, S_IRUGO | S_IWUSR,
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,
static int edac_create_csrow_object(struct mem_ctl_info *mci,
				    struct csrow_info *csrow, int index)
				    struct csrow_info *csrow, int index)
{
{
	if (csrow->nr_channels > EDAC_NR_CHANNELS)
		return -ENODEV;

	csrow->dev.type = &csrow_attr_type;
	csrow->dev.type = &csrow_attr_type;
	csrow->dev.bus = mci->bus;
	csrow->dev.bus = mci->bus;
	csrow->dev.groups = csrow_dev_groups;
	csrow->dev.groups = csrow_dev_groups;