[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1228215367-22479-1-git-send-email-giometti@linux.it>
Date: Tue, 2 Dec 2008 11:56:06 +0100
From: Rodolfo Giometti <giometti@...ux.it>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Randy Dunlap <randy.dunlap@...cle.com>,
linux-kernel@...r.kernel.org, Rodolfo Giometti <giometti@...ux.it>
Subject: [PATCH] pps sysfs: not needed variables removed.
Signed-off-by: Rodolfo Giometti <giometti@...ux.it>
---
drivers/pps/sysfs.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/drivers/pps/sysfs.c b/drivers/pps/sysfs.c
index 99528a8..7c2b0c4 100644
--- a/drivers/pps/sysfs.c
+++ b/drivers/pps/sysfs.c
@@ -41,7 +41,6 @@ static ssize_t pps_show_assert(struct device *dev,
(long long) pps->assert_tu.sec, pps->assert_tu.nsec,
pps->assert_sequence);
}
-DEVICE_ATTR(assert, S_IRUGO, pps_show_assert, NULL);
static ssize_t pps_show_clear(struct device *dev,
struct device_attribute *attr, char *buf)
@@ -55,7 +54,6 @@ static ssize_t pps_show_clear(struct device *dev,
(long long) pps->clear_tu.sec, pps->clear_tu.nsec,
pps->clear_sequence);
}
-DEVICE_ATTR(clear, S_IRUGO, pps_show_clear, NULL);
static ssize_t pps_show_mode(struct device *dev,
struct device_attribute *attr, char *buf)
@@ -64,7 +62,6 @@ static ssize_t pps_show_mode(struct device *dev,
return sprintf(buf, "%4x\n", pps->info.mode);
}
-DEVICE_ATTR(mode, S_IRUGO, pps_show_mode, NULL);
static ssize_t pps_show_echo(struct device *dev,
struct device_attribute *attr, char *buf)
@@ -73,7 +70,6 @@ static ssize_t pps_show_echo(struct device *dev,
return sprintf(buf, "%d\n", !!pps->info.echo);
}
-DEVICE_ATTR(echo, S_IRUGO, pps_show_echo, NULL);
static ssize_t pps_show_name(struct device *dev,
struct device_attribute *attr, char *buf)
@@ -82,7 +78,6 @@ static ssize_t pps_show_name(struct device *dev,
return sprintf(buf, "%s\n", pps->info.name);
}
-DEVICE_ATTR(name, S_IRUGO, pps_show_name, NULL);
static ssize_t pps_show_path(struct device *dev,
struct device_attribute *attr, char *buf)
@@ -91,7 +86,6 @@ static ssize_t pps_show_path(struct device *dev,
return sprintf(buf, "%s\n", pps->info.path);
}
-DEVICE_ATTR(path, S_IRUGO, pps_show_path, NULL);
struct device_attribute pps_attrs[] = {
__ATTR(assert, S_IRUGO, pps_show_assert, NULL),
--
1.5.3.8
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists