Skip to content

Commit

Permalink
EDAC: Remove arbitrary limit on number of channels
Browse files Browse the repository at this point in the history
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: Tony Luck <[email protected]>
Acked-by: Aristeu Rozanski <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
aegl authored and mchehab committed Jun 3, 2015
1 parent c65b99f commit c44696f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/edac/edac_mc_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c44696f

Please sign in to comment.