Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b115b024 authored by Mark Hounschell's avatar Mark Hounschell Committed by Greg Kroah-Hartman
Browse files

staging: dgap: Fix white space errors as reported by checkpatch



This patch fixes white space errors in dgap.c
as reported by checkpatch. It also changes
unnecessary mutliple empty lines with a single
empty line

Signed-off-by: default avatarMark Hounschell <markh@compro.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 305ec874
Loading
Loading
Loading
Loading
+86 −228
Original line number Diff line number Diff line
@@ -230,7 +230,6 @@ void dgap_cleanup_module(void);
module_init(dgap_init_module);
module_exit(dgap_cleanup_module);


/*
 * File operations permitted on Control/Management major.
 */
@@ -238,7 +237,6 @@ static const struct file_operations DgapBoardFops = {
	.owner	= THIS_MODULE,
};


/*
 * Globals
 */
@@ -313,7 +311,6 @@ static struct pci_device_id dgap_pci_tbl[] = {
};
MODULE_DEVICE_TABLE(pci, dgap_pci_tbl);


/*
 * A generic list of Product names, PCI Vendor ID, and PCI Device ID.
 */
@@ -380,7 +377,6 @@ static struct firmware_info fw_info[] = {
	{0,}
};


static char *dgap_driver_state_text[] = {
	"Driver Initialized",
	"Driver needs configuration load.",
@@ -403,7 +399,6 @@ static struct digi_t dgap_digi_init = {
	.digi_term =	"ansi"		/* default terminal type	*/
};


/*
 * Define a local default termios struct. All ports will be created
 * with this termios initially.
@@ -558,7 +553,6 @@ int dgap_init_module(void)
	return rc;
}


/*
 * Start of driver.
 */
@@ -626,7 +620,6 @@ static int dgap_start(void)
	return rc;
}


/*
 * Register pci driver, and return how many boards we have.
 */
@@ -635,7 +628,6 @@ static int dgap_init_pci(void)
	return pci_register_driver(&dgap_driver);
}


/* returns count (>= 0), or negative on error */
static int dgap_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
{
@@ -656,19 +648,16 @@ static int dgap_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
	return rc;
}


static int dgap_probe1(struct pci_dev *pdev, int card_type)
{
	return dgap_found_board(pdev, card_type);
}


static void dgap_remove_one(struct pci_dev *dev)
{
	/* Do Nothing */
}


/*
 * dgap_cleanup_module()
 *
@@ -714,7 +703,6 @@ void dgap_cleanup_module(void)
		pci_unregister_driver(&dgap_driver);
}


/*
 * dgap_cleanup_board()
 *
@@ -771,7 +759,6 @@ static void dgap_cleanup_board(struct board_t *brd)
	kfree(brd);
}


/*
 * dgap_found_board()
 *
@@ -863,7 +850,6 @@ static int dgap_found_board(struct pci_dev *pdev, int id)
	brd->port = brd->membase + PCI_IO_OFFSET;
	brd->port_end = brd->port + PCI_IO_SIZE;


	/*
	 * Special initialization for non-PLX boards
	 */
@@ -907,7 +893,6 @@ static int dgap_found_board(struct pci_dev *pdev, int id)

static int dgap_finalize_board_init(struct board_t *brd)
{

	int rc;

	if (!brd || brd->magic != DGAP_BOARD_MAGIC)
@@ -1113,7 +1098,6 @@ static int dgap_do_remap(struct board_t *brd)
	return 0;
}


/*****************************************************************************
*
* Function:
@@ -1149,7 +1133,6 @@ static void dgap_poll_handler(ulong dummy)

	dgap_poll_counter++;


	/*
	 * Do not start the board state machine until
	 * driver tells us its up and running, and has
@@ -1230,9 +1213,6 @@ static void dgap_poll_handler(ulong dummy)
		add_timer(&dgap_poll_timer);
}




/*
 * dgap_intr()
 *
@@ -1260,7 +1240,6 @@ static irqreturn_t dgap_intr(int irq, void *voidbrd)
	return IRQ_HANDLED;
}


/*
 * dgap_init_globals()
 *
@@ -1283,7 +1262,6 @@ static void dgap_init_globals(void)
	dgap_dl_action = 0;
}


/************************************************************************
 *
 * Utility functions
@@ -1304,9 +1282,6 @@ static int dgap_ms_sleep(ulong ms)
	return signal_pending(current);
}




/************************************************************************
 *
 * TTY Initialization/Cleanup Functions
@@ -1341,7 +1316,6 @@ static int dgap_tty_preinit(void)
	return 0;
}


/*
 * dgap_tty_register()
 *
@@ -1427,7 +1401,6 @@ static int dgap_tty_register(struct board_t *brd)
	return rc;
}


/*
 * dgap_tty_init()
 *
@@ -1593,7 +1566,6 @@ static int dgap_tty_init(struct board_t *brd)
	return 0;
}


/*
 * dgap_tty_post_uninit()
 *
@@ -1605,7 +1577,6 @@ static void dgap_tty_post_uninit(void)
	dgap_TmpWriteBuf = NULL;
}


/*
 * dgap_tty_uninit()
 *
@@ -1649,9 +1620,7 @@ static void dgap_tty_uninit(struct board_t *brd)
	}
}


#define TMPBUFLEN (1024)

/*
 * dgap_sniff - Dump data out to the "sniff" buffer if the
 * proc sniff file is opened...
@@ -1764,7 +1733,6 @@ static void dgap_sniff_nowait_nolock(struct channel_t *ch, uchar *text, uchar *b
	} while (too_much_data);
}


/*=======================================================================
 *
 *      dgap_input - Process received data.
@@ -1973,7 +1941,6 @@ static void dgap_input(struct channel_t *ch)

}


/************************************************************************
 * Determines when CARRIER changes state and takes appropriate
 * action.
@@ -2088,7 +2055,6 @@ static void dgap_carrier(struct channel_t *ch)
		ch->ch_flags &= ~CH_CD;
}


/************************************************************************
 *
 * TTY Entry points and helper functions
@@ -2250,7 +2216,6 @@ static int dgap_tty_open(struct tty_struct *tty, struct file *file)
	return rc;
}


/*
 * dgap_block_til_ready()
 *
@@ -2380,7 +2345,6 @@ static int dgap_block_til_ready(struct tty_struct *tty, struct file *file, struc
	return 0;
}


/*
 * dgap_tty_hangup()
 *
@@ -2412,8 +2376,6 @@ static void dgap_tty_hangup(struct tty_struct *tty)

}



/*
 * dgap_tty_close()
 *
@@ -2541,7 +2503,6 @@ static void dgap_tty_close(struct tty_struct *tty, struct file *file)
	DGAP_UNLOCK(ch->ch_lock, lock_flags);
}


/*
 * dgap_tty_chars_in_buffer()
 *
@@ -2641,7 +2602,6 @@ static int dgap_tty_chars_in_buffer(struct tty_struct *tty)
	return chars;
}


static int dgap_wait_for_drain(struct tty_struct *tty)
{
	struct channel_t *ch;
@@ -2696,7 +2656,6 @@ static int dgap_wait_for_drain(struct tty_struct *tty)
	return ret;
}


/*
 * dgap_maxcps_room
 *
@@ -2752,7 +2711,6 @@ static int dgap_maxcps_room(struct tty_struct *tty, int bytes_available)
	return bytes_available;
}


static inline void dgap_set_firmware_event(struct un_t *un, unsigned int event)
{
	struct channel_t *ch = NULL;
@@ -2781,7 +2739,6 @@ static inline void dgap_set_firmware_event(struct un_t *un, unsigned int event)
	}
}


/*
 * dgap_tty_write_room()
 *
@@ -2853,7 +2810,6 @@ static int dgap_tty_write_room(struct tty_struct *tty)
	return ret;
}


/*
 * dgap_tty_put_char()
 *
@@ -2870,7 +2826,6 @@ static int dgap_tty_put_char(struct tty_struct *tty, unsigned char c)
	return 1;
}


/*
 * dgap_tty_write()
 *
@@ -3043,7 +2998,6 @@ static int dgap_tty_write(struct tty_struct *tty, const unsigned char *buf, int
		writew(head, &(bs->tx_head));
	}


	dgap_set_firmware_event(un, UN_LOW | UN_EMPTY);

	/*
@@ -3082,8 +3036,6 @@ static int dgap_tty_write(struct tty_struct *tty, const unsigned char *buf, int
	return count;
}



/*
 * Return modem signals to ld.
 */
@@ -3132,13 +3084,11 @@ static int dgap_tty_tiocmget(struct tty_struct *tty)
	return result;
}


/*
 * dgap_tty_tiocmset()
 *
 * Set modem signals, called by ld.
 */

static int dgap_tty_tiocmset(struct tty_struct *tty,
		unsigned int set, unsigned int clear)
{
@@ -3195,8 +3145,6 @@ static int dgap_tty_tiocmset(struct tty_struct *tty,
	return 0;
}



/*
 * dgap_tty_send_break()
 *
@@ -3251,9 +3199,6 @@ static int dgap_tty_send_break(struct tty_struct *tty, int msec)
	return 0;
}




/*
 * dgap_tty_wait_until_sent()
 *
@@ -3264,8 +3209,6 @@ static void dgap_tty_wait_until_sent(struct tty_struct *tty, int timeout)
	dgap_wait_for_drain(tty);
}



/*
 * dgap_send_xchar()
 *
@@ -3321,9 +3264,6 @@ static void dgap_tty_send_xchar(struct tty_struct *tty, char c)
	return;
}




/*
 * Return modem signals to ld.
 */
@@ -3365,7 +3305,6 @@ static int dgap_get_modem_info(struct channel_t *ch, unsigned int __user *value)
	return rc;
}


/*
 * dgap_set_modem_info()
 *
@@ -3457,7 +3396,6 @@ static int dgap_set_modem_info(struct tty_struct *tty, unsigned int command, uns
	return 0;
}


/*
 * dgap_tty_digigeta()
 *
@@ -3499,7 +3437,6 @@ static int dgap_tty_digigeta(struct tty_struct *tty, struct digi_t __user *retin
	return 0;
}


/*
 * dgap_tty_digiseta()
 *
@@ -3569,7 +3506,6 @@ static int dgap_tty_digiseta(struct tty_struct *tty, struct digi_t __user *new_i
	return 0;
}


/*
 * dgap_tty_digigetedelay()
 *
@@ -3611,7 +3547,6 @@ static int dgap_tty_digigetedelay(struct tty_struct *tty, int __user *retinfo)
	return 0;
}


/*
 * dgap_tty_digisetedelay()
 *
@@ -3658,7 +3593,6 @@ static int dgap_tty_digisetedelay(struct tty_struct *tty, int __user *new_info)
	return 0;
}


/*
 * dgap_tty_digigetcustombaud()
 *
@@ -3697,7 +3631,6 @@ static int dgap_tty_digigetcustombaud(struct tty_struct *tty, int __user *retinf
	return 0;
}


/*
 * dgap_tty_digisetcustombaud()
 *
@@ -3747,7 +3680,6 @@ static int dgap_tty_digisetcustombaud(struct tty_struct *tty, int __user *new_in
	return 0;
}


/*
 * dgap_set_termios()
 */
@@ -3791,7 +3723,6 @@ static void dgap_tty_set_termios(struct tty_struct *tty, struct ktermios *old_te
	DGAP_UNLOCK(bd->bd_lock, lock_flags);
}


static void dgap_tty_throttle(struct tty_struct *tty)
{
	struct board_t *bd;
@@ -3828,7 +3759,6 @@ static void dgap_tty_throttle(struct tty_struct *tty)

}


static void dgap_tty_unthrottle(struct tty_struct *tty)
{
	struct board_t *bd;
@@ -3865,7 +3795,6 @@ static void dgap_tty_unthrottle(struct tty_struct *tty)
	DGAP_UNLOCK(bd->bd_lock, lock_flags);
}


static void dgap_tty_start(struct tty_struct *tty)
{
	struct board_t *bd;
@@ -3899,7 +3828,6 @@ static void dgap_tty_start(struct tty_struct *tty)

}


static void dgap_tty_stop(struct tty_struct *tty)
{
	struct board_t *bd;
@@ -3933,7 +3861,6 @@ static void dgap_tty_stop(struct tty_struct *tty)

}


/*
 * dgap_tty_flush_chars()
 *
@@ -3979,8 +3906,6 @@ static void dgap_tty_flush_chars(struct tty_struct *tty)
	DGAP_UNLOCK(bd->bd_lock, lock_flags);
}



/*
 * dgap_tty_flush_buffer()
 *
@@ -4033,8 +3958,6 @@ static void dgap_tty_flush_buffer(struct tty_struct *tty)
	tty_wakeup(tty);
}



/*****************************************************************************
 *
 * The IOCTL function and all of its helpers
@@ -4117,7 +4040,6 @@ static int dgap_tty_ioctl(struct tty_struct *tty, unsigned int cmd,

		return 0;


	case TCSBRKP:
		/* support for POSIX tcsendbreak()

@@ -4447,8 +4369,6 @@ static int dgap_after_config_loaded(int board)
	return 0;
}



/*
 * Create pr and tty device entries
 */
@@ -4497,7 +4417,6 @@ static int dgap_tty_register_ports(struct board_t *brd)
	return 0;
}


/*
 * Copies the BIOS code from the user to the board,
 * and starts the BIOS running.
@@ -4532,7 +4451,6 @@ static void dgap_do_bios_load(struct board_t *brd, uchar __user *ubios, int len)
	writeb(FEPCLR, brd->re_map_port);
}


/*
 * Checks to see if the BIOS completed running on the card.
 */
@@ -4575,7 +4493,6 @@ static void dgap_do_wait_for_bios(struct board_t *brd)
	brd->dpastatus = BD_NOBIOS;
}


/*
 * Copies the FEP code from the user to the board,
 * and starts the FEP running.
@@ -4621,7 +4538,6 @@ static void dgap_do_fep_load(struct board_t *brd, uchar *ufep, int len)

}


/*
 * Waits for the FEP to report thats its ready for us to use.
 */
@@ -4670,7 +4586,6 @@ static void dgap_do_wait_for_fep(struct board_t *brd)
	brd->dpastatus = BD_NOFEP;
}


/*
 * Physically forces the FEP5 card to reset itself.
 */
@@ -4722,7 +4637,6 @@ static void dgap_do_reset_board(struct board_t *brd)
		brd->state = FINISHED_RESET;
}


#ifdef DIGI_CONCENTRATORS_SUPPORTED
/*
 * Sends a concentrator image into the FEP5 board.
@@ -4853,7 +4767,6 @@ static void dgap_get_vpd(struct board_t *brd)
	pci_write_config_dword(brd->pdev, PCI_ROM_ADDRESS, magic);
}


/*
 * Our board poller function.
 */
@@ -5069,7 +4982,6 @@ static void dgap_poll_tasklet(unsigned long data)
	DGAP_UNLOCK(bd->bd_lock, lock_flags);
}


/*=======================================================================
 *
 *      dgap_cmdb - Sends a 2 byte command to the FEP.
@@ -5156,7 +5068,6 @@ static void dgap_cmdb(struct channel_t *ch, uchar cmd, uchar byte1, uchar byte2,
	}
}


/*=======================================================================
 *
 *      dgap_cmdw - Sends a 1 word command to the FEP.
@@ -5240,8 +5151,6 @@ static void dgap_cmdw(struct channel_t *ch, uchar cmd, u16 word, uint ncmds)
	}
}



/*=======================================================================
 *
 *      dgap_cmdw_ext - Sends a extended word command to the FEP.
@@ -5337,7 +5246,6 @@ static void dgap_cmdw_ext(struct channel_t *ch, u16 cmd, u16 word, uint ncmds)
	}
}


/*=======================================================================
 *
 *      dgap_wmove - Write data to FEP buffer.
@@ -5432,7 +5340,6 @@ static uint dgap_get_custom_baud(struct channel_t *ch)
	return value;
}


/*
 * Calls the firmware to reset this channel.
 */
@@ -5459,7 +5366,6 @@ static void dgap_firmware_reset_port(struct channel_t *ch)
	ch->ch_hflow = 0;
}


/*=======================================================================
 *
 *      dgap_param - Set Digi parameters.
@@ -5599,7 +5505,6 @@ static int dgap_param(struct tty_struct *tty)

		ch->ch_baud_info = baud;


		/*
		 * CBAUD has bit position 0x1000 set these days to indicate Linux
		 * baud rate remap.
@@ -5615,7 +5520,6 @@ static int dgap_param(struct tty_struct *tty)
		if ((ch->ch_digi.digi_flags & DIGI_FAST) || (ch->ch_c_cflag & CBAUDEX))
			cflag |= HUPCL;


		if ((ch->ch_c_cflag & CBAUDEX) && !(ch->ch_digi.digi_flags & DIGI_FAST)) {
		/*
		 * The below code is trying to guarantee that only baud rates
@@ -5789,7 +5693,6 @@ static int dgap_param(struct tty_struct *tty)
	return 0;
}


/*
 * dgap_parity_scan()
 *
@@ -5867,9 +5770,6 @@ static void dgap_parity_scan(struct channel_t *ch, unsigned char *cbuf, unsigned
	*len = count;
}




/*=======================================================================
 *
 *      dgap_event - FEP to host event processing routine.
@@ -6180,7 +6080,6 @@ static ssize_t dgap_driver_pollrate_store(struct device_driver *ddp, const char
}
static DRIVER_ATTR(pollrate, (S_IRUSR | S_IWUSR), dgap_driver_pollrate_show, dgap_driver_pollrate_store);


static void dgap_create_driver_sysfiles(struct pci_driver *dgap_driver)
{
	int rc = 0;
@@ -6197,7 +6096,6 @@ static void dgap_create_driver_sysfiles(struct pci_driver *dgap_driver)
		printk(KERN_ERR "DGAP: sysfs driver_create_file failed!\n");
}


static void dgap_remove_driver_sysfiles(struct pci_driver *dgap_driver)
{
	struct device_driver *driverfs = &dgap_driver->driver;
@@ -6210,7 +6108,6 @@ static void dgap_remove_driver_sysfiles(struct pci_driver *dgap_driver)
	driver_remove_file(driverfs, &driver_attr_state);
}


#define DGAP_VERIFY_BOARD(p, bd)			\
	if (!p)						\
		return 0;				\
@@ -6221,7 +6118,6 @@ static void dgap_remove_driver_sysfiles(struct pci_driver *dgap_driver)
	if (bd->state != BOARD_READY)			\
		return 0;				\


static ssize_t dgap_ports_state_show(struct device *p, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6239,7 +6135,6 @@ static ssize_t dgap_ports_state_show(struct device *p, struct device_attribute *
}
static DEVICE_ATTR(ports_state, S_IRUSR, dgap_ports_state_show, NULL);


static ssize_t dgap_ports_baud_show(struct device *p, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6256,7 +6151,6 @@ static ssize_t dgap_ports_baud_show(struct device *p, struct device_attribute *a
}
static DEVICE_ATTR(ports_baud, S_IRUSR, dgap_ports_baud_show, NULL);


static ssize_t dgap_ports_msignals_show(struct device *p, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6283,7 +6177,6 @@ static ssize_t dgap_ports_msignals_show(struct device *p, struct device_attribut
}
static DEVICE_ATTR(ports_msignals, S_IRUSR, dgap_ports_msignals_show, NULL);


static ssize_t dgap_ports_iflag_show(struct device *p, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6299,7 +6192,6 @@ static ssize_t dgap_ports_iflag_show(struct device *p, struct device_attribute *
}
static DEVICE_ATTR(ports_iflag, S_IRUSR, dgap_ports_iflag_show, NULL);


static ssize_t dgap_ports_cflag_show(struct device *p, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6315,7 +6207,6 @@ static ssize_t dgap_ports_cflag_show(struct device *p, struct device_attribute *
}
static DEVICE_ATTR(ports_cflag, S_IRUSR, dgap_ports_cflag_show, NULL);


static ssize_t dgap_ports_oflag_show(struct device *p, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6331,7 +6222,6 @@ static ssize_t dgap_ports_oflag_show(struct device *p, struct device_attribute *
}
static DEVICE_ATTR(ports_oflag, S_IRUSR, dgap_ports_oflag_show, NULL);


static ssize_t dgap_ports_lflag_show(struct device *p, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6347,7 +6237,6 @@ static ssize_t dgap_ports_lflag_show(struct device *p, struct device_attribute *
}
static DEVICE_ATTR(ports_lflag, S_IRUSR, dgap_ports_lflag_show, NULL);


static ssize_t dgap_ports_digi_flag_show(struct device *p, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6363,7 +6252,6 @@ static ssize_t dgap_ports_digi_flag_show(struct device *p, struct device_attribu
}
static DEVICE_ATTR(ports_digi_flag, S_IRUSR, dgap_ports_digi_flag_show, NULL);


static ssize_t dgap_ports_rxcount_show(struct device *p, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6379,7 +6267,6 @@ static ssize_t dgap_ports_rxcount_show(struct device *p, struct device_attribute
}
static DEVICE_ATTR(ports_rxcount, S_IRUSR, dgap_ports_rxcount_show, NULL);


static ssize_t dgap_ports_txcount_show(struct device *p, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6395,7 +6282,6 @@ static ssize_t dgap_ports_txcount_show(struct device *p, struct device_attribute
}
static DEVICE_ATTR(ports_txcount, S_IRUSR, dgap_ports_txcount_show, NULL);


/* this function creates the sys files that will export each signal status
 * to sysfs each value will be put in a separate filename
 */
@@ -6418,7 +6304,6 @@ static void dgap_create_ports_sysfiles(struct board_t *bd)
		printk(KERN_ERR "DGAP: sysfs device_create_file failed!\n");
}


/* removes all the sys files created for that port */
static void dgap_remove_ports_sysfiles(struct board_t *bd)
{
@@ -6434,7 +6319,6 @@ static void dgap_remove_ports_sysfiles(struct board_t *bd)
	device_remove_file(&(bd->pdev->dev), &dev_attr_ports_txcount);
}


static ssize_t dgap_tty_state_show(struct device *d, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6459,7 +6343,6 @@ static ssize_t dgap_tty_state_show(struct device *d, struct device_attribute *at
}
static DEVICE_ATTR(state, S_IRUSR, dgap_tty_state_show, NULL);


static ssize_t dgap_tty_baud_show(struct device *d, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6484,7 +6367,6 @@ static ssize_t dgap_tty_baud_show(struct device *d, struct device_attribute *att
}
static DEVICE_ATTR(baud, S_IRUSR, dgap_tty_baud_show, NULL);


static ssize_t dgap_tty_msignals_show(struct device *d, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6518,7 +6400,6 @@ static ssize_t dgap_tty_msignals_show(struct device *d, struct device_attribute
}
static DEVICE_ATTR(msignals, S_IRUSR, dgap_tty_msignals_show, NULL);


static ssize_t dgap_tty_iflag_show(struct device *d, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6543,7 +6424,6 @@ static ssize_t dgap_tty_iflag_show(struct device *d, struct device_attribute *at
}
static DEVICE_ATTR(iflag, S_IRUSR, dgap_tty_iflag_show, NULL);


static ssize_t dgap_tty_cflag_show(struct device *d, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6568,7 +6448,6 @@ static ssize_t dgap_tty_cflag_show(struct device *d, struct device_attribute *at
}
static DEVICE_ATTR(cflag, S_IRUSR, dgap_tty_cflag_show, NULL);


static ssize_t dgap_tty_oflag_show(struct device *d, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6593,7 +6472,6 @@ static ssize_t dgap_tty_oflag_show(struct device *d, struct device_attribute *at
}
static DEVICE_ATTR(oflag, S_IRUSR, dgap_tty_oflag_show, NULL);


static ssize_t dgap_tty_lflag_show(struct device *d, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6618,7 +6496,6 @@ static ssize_t dgap_tty_lflag_show(struct device *d, struct device_attribute *at
}
static DEVICE_ATTR(lflag, S_IRUSR, dgap_tty_lflag_show, NULL);


static ssize_t dgap_tty_digi_flag_show(struct device *d, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6643,7 +6520,6 @@ static ssize_t dgap_tty_digi_flag_show(struct device *d, struct device_attribute
}
static DEVICE_ATTR(digi_flag, S_IRUSR, dgap_tty_digi_flag_show, NULL);


static ssize_t dgap_tty_rxcount_show(struct device *d, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6668,7 +6544,6 @@ static ssize_t dgap_tty_rxcount_show(struct device *d, struct device_attribute *
}
static DEVICE_ATTR(rxcount, S_IRUSR, dgap_tty_rxcount_show, NULL);


static ssize_t dgap_tty_txcount_show(struct device *d, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6693,7 +6568,6 @@ static ssize_t dgap_tty_txcount_show(struct device *d, struct device_attribute *
}
static DEVICE_ATTR(txcount, S_IRUSR, dgap_tty_txcount_show, NULL);


static ssize_t dgap_tty_name_show(struct device *d, struct device_attribute *attr, char *buf)
{
	struct board_t *bd;
@@ -6789,7 +6663,6 @@ static ssize_t dgap_tty_name_show(struct device *d, struct device_attribute *att
}
static DEVICE_ATTR(custom_name, S_IRUSR, dgap_tty_name_show, NULL);


static struct attribute *dgap_sysfs_tty_entries[] = {
	&dev_attr_state.attr,
	&dev_attr_baud.attr,
@@ -6805,15 +6678,11 @@ static struct attribute *dgap_sysfs_tty_entries[] = {
	NULL
};


static struct attribute_group dgap_tty_attribute_group = {
	.name = NULL,
	.attrs = dgap_sysfs_tty_entries,
};




static void dgap_create_tty_sysfs(struct un_t *un, struct device *c)
{
	int ret;
@@ -6829,7 +6698,6 @@ static void dgap_create_tty_sysfs(struct un_t *un, struct device *c)

}


static void dgap_remove_tty_sysfs(struct device *c)
{
	sysfs_remove_group(&c->kobj, &dgap_tty_attribute_group);
@@ -7575,7 +7443,6 @@ static int dgap_parsefile(char **in, int Remove)
	}
}


/*
 * dgap_sindex: much like index(), but it looks for a match of any character in
 * the group, and returns that position.  If the first character is a ^, then
@@ -7610,7 +7477,6 @@ static char *dgap_sindex (char *string, char *group)
	return (char *) NULL;
}


/*
 * Get a token from the input file; return 0 if end of file is reached
 */
@@ -7640,7 +7506,6 @@ static int dgap_gettok(char **in, struct cnode *p)
	}
}


/*
 * get a word from the input stream, also keep track of current line number.
 * words are separated by whitespace.
@@ -7668,7 +7533,6 @@ static char *dgap_getword(char **in)
	return ret_ptr;
}


/*
 * print an error message, giving the line number in the file where
 * the error occurred.
@@ -7678,7 +7542,6 @@ static void dgap_err(char *s)
	printk("DGAP: parse: %s\n", s);
}


/*
 * allocate a new configuration node of type t
 */
@@ -7694,7 +7557,6 @@ static struct cnode *dgap_newnode(int t)
	return n;
}


/*
 * dgap_checknode: see if all the necessary info has been supplied for a node
 * before creating the next node.
@@ -7767,7 +7629,6 @@ static char *dgap_savestring(char *s)
	return p;
}


/*
 * Given a board pointer, returns whether we should use interrupts or not.
 */
@@ -7794,7 +7655,6 @@ static uint dgap_config_get_useintr(struct board_t *bd)
	return 0;
}


/*
 * Given a board pointer, returns whether we turn on altpin or not.
 */
@@ -7821,8 +7681,6 @@ static uint dgap_config_get_altpin(struct board_t *bd)
	return 0;
}



/*
 * Given a specific type of board, if found, detached link and
 * returns the first occurrence in the list.