summaryrefslogtreecommitdiff
path: root/drivers/staging/dgrp/dgrp_dpa_ops.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-03-30 05:03:53 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-09 18:13:08 (GMT)
commitaf064cdde64d58feb315dba268e1f8439fb935be (patch)
tree1115d561fc96ef1cf63aac3cf888041c7e7166e5 /drivers/staging/dgrp/dgrp_dpa_ops.c
parent08f3d07ddd53ca3bf322ddebc0f8992e3112520f (diff)
downloadlinux-fsl-qoriq-af064cdde64d58feb315dba268e1f8439fb935be.tar.xz
dgrp procfs fixes, part 5: per-node files
this "hooks" scheme is pointless - just make file_operations non-static and consolidate initialiazation bits. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/staging/dgrp/dgrp_dpa_ops.c')
-rw-r--r--drivers/staging/dgrp/dgrp_dpa_ops.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/staging/dgrp/dgrp_dpa_ops.c b/drivers/staging/dgrp/dgrp_dpa_ops.c
index 021cca4..cfa8e82 100644
--- a/drivers/staging/dgrp/dgrp_dpa_ops.c
+++ b/drivers/staging/dgrp/dgrp_dpa_ops.c
@@ -52,7 +52,7 @@ static long dgrp_dpa_ioctl(struct file *file, unsigned int cmd,
unsigned long arg);
static unsigned int dgrp_dpa_select(struct file *, struct poll_table_struct *);
-static const struct file_operations dpa_ops = {
+const struct file_operations dgrp_dpa_ops = {
.owner = THIS_MODULE,
.read = dgrp_dpa_read,
.poll = dgrp_dpa_select,
@@ -61,12 +61,6 @@ static const struct file_operations dpa_ops = {
.release = dgrp_dpa_release,
};
-static struct inode_operations dpa_inode_ops = {
- .permission = dgrp_inode_permission
-};
-
-
-
struct digi_node {
uint nd_state; /* Node state: 1 = up, 0 = down. */
uint nd_chan_count; /* Number of channels found */
@@ -111,17 +105,6 @@ struct digi_debug {
#define DIGI_SETDEBUG (('d'<<8) | 247) /* set debug info */
-void dgrp_register_dpa_hook(struct proc_dir_entry *de)
-{
- struct nd_struct *node = de->data;
-
- de->proc_iops = &dpa_inode_ops;
- de->proc_fops = &dpa_ops;
-
- node->nd_dpa_de = de;
- spin_lock_init(&node->nd_dpa_lock);
-}
-
/*
* dgrp_dpa_open -- open the DPA device for a particular PortServer
*/