aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgap/dgap.h
diff options
context:
space:
mode:
authorDaeseok Youn <daeseok.youn@gmail.com>2014-08-09 14:38:14 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-16 12:23:06 -0700
commit77a4492fcc5696efd667cf698cb806ae846ea163 (patch)
treed01a1376b6397f8ab7415d62705392aee640b30d /drivers/staging/dgap/dgap.h
parentstaging: dgap: cleanup duplicated warning message on dgap_tty_init() (diff)
downloadlinux-dev-77a4492fcc5696efd667cf698cb806ae846ea163.tar.xz
linux-dev-77a4492fcc5696efd667cf698cb806ae846ea163.zip
staging: dgap: Simplify set a board type from configration file
Board types need to separate normal command like IO, MEM and so on. And the board type will come after "board" string in config file normally. (If it is not, dgap_gettok returns an error with zero) After that, set a variable of a number which is matched with specific a board number to "board.type". The dgap_gettok() returns that number so just set to "board.type" and also "v_type" can be removed. In case of boards of PCI type are set variables to zero. These can be removed because "p" as cnode get memory from kzalloc so already set to zero. Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgap/dgap.h')
-rw-r--r--drivers/staging/dgap/dgap.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/dgap/dgap.h b/drivers/staging/dgap/dgap.h
index 0482a4cf6f28..c01aa2820660 100644
--- a/drivers/staging/dgap/dgap.h
+++ b/drivers/staging/dgap/dgap.h
@@ -1172,7 +1172,6 @@ struct cnode {
char *id; /* tty id */
long start; /* start of tty counting */
char *method; /* Install method */
- char v_type;
char v_port;
char v_addr;
char v_pcibus;