|
@@ -1506,11 +1506,6 @@ static int fwtty_debugfs_peers_show(struct seq_file *m, void *v)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static int fwtty_proc_open(struct inode *inode, struct file *fp)
|
|
|
-{
|
|
|
- return single_open(fp, fwtty_proc_show, NULL);
|
|
|
-}
|
|
|
-
|
|
|
static int fwtty_stats_open(struct inode *inode, struct file *fp)
|
|
|
{
|
|
|
return single_open(fp, fwtty_debugfs_stats_show, inode->i_private);
|
|
@@ -1537,14 +1532,6 @@ static const struct file_operations fwtty_peers_fops = {
|
|
|
.release = single_release,
|
|
|
};
|
|
|
|
|
|
-static const struct file_operations fwtty_proc_fops = {
|
|
|
- .owner = THIS_MODULE,
|
|
|
- .open = fwtty_proc_open,
|
|
|
- .read = seq_read,
|
|
|
- .llseek = seq_lseek,
|
|
|
- .release = single_release,
|
|
|
-};
|
|
|
-
|
|
|
static const struct tty_port_operations fwtty_port_ops = {
|
|
|
.dtr_rts = fwtty_port_dtr_rts,
|
|
|
.carrier_raised = fwtty_port_carrier_raised,
|
|
@@ -1570,7 +1557,7 @@ static const struct tty_operations fwtty_ops = {
|
|
|
.tiocmget = fwtty_tiocmget,
|
|
|
.tiocmset = fwtty_tiocmset,
|
|
|
.get_icount = fwtty_get_icount,
|
|
|
- .proc_fops = &fwtty_proc_fops,
|
|
|
+ .proc_show = fwtty_proc_show,
|
|
|
};
|
|
|
|
|
|
static const struct tty_operations fwloop_ops = {
|