power: vexpress: make dev_attr_active static
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 8 Jun 2016 18:26:31 +0000 (19:26 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 13 Jun 2016 08:55:51 +0000 (09:55 +0100)
The dev_attr_active is not exported or defined to be used
outside the driver, so make it static to avoid the following
warning:

drivers/power/reset/vexpress-poweroff.c:77:1: warning: symbol 'dev_attr_active' was not declared. Should it be static?

Cc: Liviu Dudau <liviu.dudau@arm.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/power/reset/vexpress-poweroff.c

index 6a9bf70..102f95a 100644 (file)
@@ -74,8 +74,8 @@ static ssize_t vexpress_reset_active_store(struct device *dev,
        return err ? err : count;
 }
 
-DEVICE_ATTR(active, S_IRUGO | S_IWUSR, vexpress_reset_active_show,
-               vexpress_reset_active_store);
+static DEVICE_ATTR(active, S_IRUGO | S_IWUSR, vexpress_reset_active_show,
+                  vexpress_reset_active_store);
 
 
 enum vexpress_reset_func { FUNC_RESET, FUNC_SHUTDOWN, FUNC_REBOOT };