diff --git a/drivers/edac/edac_device.h b/drivers/edac/edac_device.h index 034711d71ebf..24c1921aa490 100644 --- a/drivers/edac/edac_device.h +++ b/drivers/edac/edac_device.h @@ -163,7 +163,7 @@ struct edac_device_ctl_info { * If attributes are desired, then set to array of attributes * If no attributes are desired, leave NULL */ - struct edac_dev_sysfs_attribute *sysfs_attributes; + const struct edac_dev_sysfs_attribute *sysfs_attributes; /* pointer to main 'edac' subsys in sysfs */ const struct bus_type *edac_subsys; diff --git a/drivers/edac/edac_device_sysfs.c b/drivers/edac/edac_device_sysfs.c index 754d44827942..b1c2717cd023 100644 --- a/drivers/edac/edac_device_sysfs.c +++ b/drivers/edac/edac_device_sysfs.c @@ -723,7 +723,7 @@ static void edac_device_delete_instances(struct edac_device_ctl_info *edac_dev) static int edac_device_add_main_sysfs_attributes( struct edac_device_ctl_info *edac_dev) { - struct edac_dev_sysfs_attribute *sysfs_attrib; + const struct edac_dev_sysfs_attribute *sysfs_attrib; int err = 0; sysfs_attrib = edac_dev->sysfs_attributes; @@ -752,7 +752,7 @@ static int edac_device_add_main_sysfs_attributes( static void edac_device_remove_main_sysfs_attributes( struct edac_device_ctl_info *edac_dev) { - struct edac_dev_sysfs_attribute *sysfs_attrib; + const struct edac_dev_sysfs_attribute *sysfs_attrib; /* if there are main attributes, defined, remove them. First, * point to the start of the array and iterate over it