summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc/dgnc_driver.c
diff options
context:
space:
mode:
authorKonrad Zapalowicz <bergo.torino@gmail.com>2014-08-16 16:58:06 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-17 09:52:24 -0700
commit3599abafcc51594f1629f19a6a12ff92f6e94017 (patch)
tree5552460ffe63d415bed5879658db5a847d26ea89 /drivers/staging/dgnc/dgnc_driver.c
parent1d8c5aa329e7a7a17d9c99122d89d76663195ddb (diff)
downloadop-kernel-dev-3599abafcc51594f1629f19a6a12ff92f6e94017.zip
op-kernel-dev-3599abafcc51594f1629f19a6a12ff92f6e94017.tar.gz
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_driver.c')
-rw-r--r--drivers/staging/dgnc/dgnc_driver.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c
index d3fc3c2..223075a 100644
--- a/drivers/staging/dgnc/dgnc_driver.c
+++ b/drivers/staging/dgnc/dgnc_driver.c
@@ -90,7 +90,6 @@ static const struct file_operations dgnc_BoardFops = {
uint dgnc_NumBoards;
struct dgnc_board *dgnc_Board[MAXBOARDS];
DEFINE_SPINLOCK(dgnc_global_lock);
-ulong dgnc_poll_counter;
uint dgnc_Major;
int dgnc_poll_tick = 20; /* Poll interval - 20 ms */
@@ -736,8 +735,6 @@ static void dgnc_poll_handler(ulong dummy)
int i;
unsigned long new_time;
- dgnc_poll_counter++;
-
/* Go thru each board, kicking off a tasklet for each if needed */
for (i = 0; i < dgnc_NumBoards; i++) {
brd = dgnc_Board[i];
OpenPOWER on IntegriCloud