diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2016-06-08 19:26:31 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2016-06-13 09:55:51 +0100 |
commit | 0a14d280e17ef3db75254439dfc83f1bc65fca6f (patch) | |
tree | b48ab72a625301577732f261f292764623b94fbb | |
parent | e13de0a8d032dedc41a01659ea203b9cdece532b (diff) | |
download | linux-stable-0a14d280e17ef3db75254439dfc83f1bc65fca6f.tar.gz linux-stable-0a14d280e17ef3db75254439dfc83f1bc65fca6f.tar.bz2 linux-stable-0a14d280e17ef3db75254439dfc83f1bc65fca6f.zip |
power: vexpress: make dev_attr_active static
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>
-rw-r--r-- | drivers/power/reset/vexpress-poweroff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/reset/vexpress-poweroff.c b/drivers/power/reset/vexpress-poweroff.c index 6a9bf7089373..102f95a09460 100644 --- a/drivers/power/reset/vexpress-poweroff.c +++ b/drivers/power/reset/vexpress-poweroff.c @@ -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 }; |