rk312x, mali_400: add 'static' on DEVICE_ATTR variables.
authorchenzhen <chenzhen@rock-chips.com>
Fri, 23 Oct 2015 02:35:44 +0000 (10:35 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 23 Oct 2015 03:13:00 +0000 (11:13 +0800)
Change-Id: Icaaf3ce9626e78fe12e74587cc0812bfcfa3de2e
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
drivers/gpu/arm/mali400/mali/platform/rk30/mali_platform.c

index fb8356faf002171d37570bce28e106f34cfc9c3c..fd3ecab87bad7ceb8f35dd79ef7818aee96a7aca 100644 (file)
@@ -257,11 +257,11 @@ static int error_count_show(struct device *dev,
        return sprintf(buf, "%d\n", mali_group_error);
 }
 
-DEVICE_ATTR(available_frequencies, S_IRUGO, show_available_frequencies, NULL);
-DEVICE_ATTR(clock, S_IRUGO | S_IWUSR, show_clock, set_clock);
-DEVICE_ATTR(dvfs_enable, S_IRUGO | S_IWUSR, show_dvfs_enable, set_dvfs_enable);
-DEVICE_ATTR(utilisation, S_IRUGO, show_utilisation, NULL);
-DEVICE_ATTR(error_count, 0644, error_count_show, NULL);
+static DEVICE_ATTR(available_frequencies, S_IRUGO, show_available_frequencies, NULL);
+static DEVICE_ATTR(clock, S_IRUGO | S_IWUSR, show_clock, set_clock);
+static DEVICE_ATTR(dvfs_enable, S_IRUGO | S_IWUSR, show_dvfs_enable, set_dvfs_enable);
+static DEVICE_ATTR(utilisation, S_IRUGO, show_utilisation, NULL);
+static DEVICE_ATTR(error_count, 0644, error_count_show, NULL);
 
 static struct attribute *mali_sysfs_entries[] = {
        &dev_attr_available_frequencies.attr,