diff options
author | Konrad Zapalowicz | 2014-08-16 16:58:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-08-17 18:52:24 +0200 |
commit | 3599abafcc51594f1629f19a6a12ff92f6e94017 (patch) | |
tree | 5552460ffe63d415bed5879658db5a847d26ea89 /drivers/staging/dgnc/dgnc_sysfs.c | |
parent | staging: dgnc: Remove driver-wide state variable (diff) | |
download | kernel-qcow2-linux-3599abafcc51594f1629f19a6a12ff92f6e94017.tar.gz kernel-qcow2-linux-3599abafcc51594f1629f19a6a12ff92f6e94017.tar.xz kernel-qcow2-linux-3599abafcc51594f1629f19a6a12ff92f6e94017.zip |
staging: dgnc: Remove driver-wide polling counter variable
The polling counter variable is only exposed via sysfs and has no other
purpose.
Now, since the polling shall be implemented as a board specific feature
rather than being global in the driver this counter is obsolete.
Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_sysfs.c')
-rw-r--r-- | drivers/staging/dgnc/dgnc_sysfs.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/staging/dgnc/dgnc_sysfs.c b/drivers/staging/dgnc/dgnc_sysfs.c index 4765ba5484e5..60d247b72b9b 100644 --- a/drivers/staging/dgnc/dgnc_sysfs.c +++ b/drivers/staging/dgnc/dgnc_sysfs.c @@ -63,14 +63,6 @@ static ssize_t dgnc_driver_maxboards_show(struct device_driver *ddp, char *buf) } static DRIVER_ATTR(maxboards, S_IRUSR, dgnc_driver_maxboards_show, NULL); - -static ssize_t dgnc_driver_pollcounter_show(struct device_driver *ddp, char *buf) -{ - return snprintf(buf, PAGE_SIZE, "%ld\n", dgnc_poll_counter); -} -static DRIVER_ATTR(pollcounter, S_IRUSR, dgnc_driver_pollcounter_show, NULL); - - static ssize_t dgnc_driver_debug_show(struct device_driver *ddp, char *buf) { return snprintf(buf, PAGE_SIZE, "0x%x\n", dgnc_debug); @@ -121,7 +113,6 @@ void dgnc_create_driver_sysfiles(struct pci_driver *dgnc_driver) rc |= driver_create_file(driverfs, &driver_attr_debug); rc |= driver_create_file(driverfs, &driver_attr_rawreadok); rc |= driver_create_file(driverfs, &driver_attr_pollrate); - rc |= driver_create_file(driverfs, &driver_attr_pollcounter); if (rc) { printk(KERN_ERR "DGNC: sysfs driver_create_file failed!\n"); } @@ -137,7 +128,6 @@ void dgnc_remove_driver_sysfiles(struct pci_driver *dgnc_driver) driver_remove_file(driverfs, &driver_attr_debug); driver_remove_file(driverfs, &driver_attr_rawreadok); driver_remove_file(driverfs, &driver_attr_pollrate); - driver_remove_file(driverfs, &driver_attr_pollcounter); } |