Skip to content

Commit

Permalink
dgnc: remove old 2.4-2.6 compat kernel defines
Browse files Browse the repository at this point in the history
dgnc_kcompat.h contains some old legacy defines in case the kernel
doesn't have __user defined but for current kernel versions these
defines don't make sense and are useless so remove them. Move the
TTY_FLIPBUF_SIZE define to digi.h because it's used in the code.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Giedrius Statkevičius authored and Greg Kroah-Hartman committed Mar 24, 2015
1 parent d533a52 commit 20dad75
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 42 deletions.
1 change: 0 additions & 1 deletion drivers/staging/dgnc/dgnc_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <linux/interrupt.h> /* For irqreturn_t type */

#include "digi.h" /* Digi specific ioctl header */
#include "dgnc_kcompat.h" /* Kernel 2.4/2.6 compat includes */
#include "dgnc_sysfs.h" /* Support for SYSFS */

/*************************************************************************
Expand Down
40 changes: 0 additions & 40 deletions drivers/staging/dgnc/dgnc_kcompat.h

This file was deleted.

1 change: 0 additions & 1 deletion drivers/staging/dgnc/dgnc_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

#include "dgnc_driver.h"
#include "dgnc_pci.h"
#include "dgnc_kcompat.h" /* Kernel 2.4/2.6 compat includes */
#include "dgnc_mgmt.h"


Expand Down
1 change: 1 addition & 0 deletions drivers/staging/dgnc/digi.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,5 @@ struct ni_info {
#define T_NEO_EXPRESS 0001
#define T_NEO 0000

#define TTY_FLIPBUF_SIZE 512
#endif /* DIGI_H */

0 comments on commit 20dad75

Please sign in to comment.