staging: unisys: remove driver version from struct visor_driver
[cascardo/linux.git] / drivers / staging / unisys / visornic / visornic_main.c
index a28388d..7a58d2e 100644 (file)
@@ -29,8 +29,6 @@
 #include "iochannel.h"
 
 #define VISORNIC_INFINITE_RSP_WAIT 0
-#define VISORNICSOPENMAX 32
-#define MAXDEVICES     16384
 
 /* MAX_BUF = 64 lines x 32 MAXVNIC x 80 characters
  *         = 163840 bytes
 #define MAX_BUF 163840
 #define NAPI_WEIGHT 64
 
-static int visornic_probe(struct visor_device *dev);
-static void visornic_remove(struct visor_device *dev);
-static int visornic_pause(struct visor_device *dev,
-                         visorbus_state_complete_func complete_func);
-static int visornic_resume(struct visor_device *dev,
-                          visorbus_state_complete_func complete_func);
-
-/* DEBUGFS declarations */
-static ssize_t info_debugfs_read(struct file *file, char __user *buf,
-                                size_t len, loff_t *offset);
-static ssize_t enable_ints_write(struct file *file, const char __user *buf,
-                                size_t len, loff_t *ppos);
-static struct dentry *visornic_debugfs_dir;
-static const struct file_operations debugfs_info_fops = {
-       .read = info_debugfs_read,
-};
-
-static const struct file_operations debugfs_enable_ints_fops = {
-       .write = enable_ints_write,
-};
-
 /* GUIDS for director channel type supported by this driver.  */
 static struct visor_channeltype_descriptor visornic_channel_types[] = {
        /* Note that the only channel type we expect to be reported by the
@@ -77,23 +54,6 @@ MODULE_DEVICE_TABLE(visorbus, visornic_channel_types);
  */
 MODULE_ALIAS("visorbus:" SPAR_VNIC_CHANNEL_PROTOCOL_UUID_STR);
 
-/* This is used to tell the visor bus driver which types of visor devices
- * we support, and what functions to call when a visor device that we support
- * is attached or removed.
- */
-static struct visor_driver visornic_driver = {
-       .name = "visornic",
-       .version = "1.0.0.0",
-       .vertag = NULL,
-       .owner = THIS_MODULE,
-       .channel_types = visornic_channel_types,
-       .probe = visornic_probe,
-       .remove = visornic_remove,
-       .pause = visornic_pause,
-       .resume = visornic_resume,
-       .channel_interrupt = NULL,
-};
-
 struct chanstat {
        unsigned long got_rcv;
        unsigned long got_enbdisack;
@@ -181,9 +141,6 @@ struct visornic_devdata {
        struct uiscmdrsp cmdrsp[SIZEOF_CMDRSP];
 };
 
-static int visornic_poll(struct napi_struct *napi, int budget);
-static void poll_for_irq(unsigned long v);
-
 /**
  *     visor_copy_fragsinfo_from_skb(
  *     @skb_in: skbuff that we are pulling the frags from
@@ -289,6 +246,10 @@ static ssize_t enable_ints_write(struct file *file,
        return count;
 }
 
+static const struct file_operations debugfs_enable_ints_fops = {
+       .write = enable_ints_write,
+};
+
 /**
  *     visornic_serverdown_complete - IOPART went down, pause device
  *     @work: Work queue it was scheduled on
@@ -1522,6 +1483,11 @@ static ssize_t info_debugfs_read(struct file *file, char __user *buf,
        return bytes_read;
 }
 
+static struct dentry *visornic_debugfs_dir;
+static const struct file_operations debugfs_info_fops = {
+       .read = info_debugfs_read,
+};
+
 /**
  *     send_rcv_posts_if_needed
  *     @devdata: visornic device
@@ -1586,7 +1552,7 @@ drain_resp_queue(struct uiscmdrsp *cmdrsp, struct visornic_devdata *devdata)
  *
  *     Drain the respones queue of any responses from the IO partition.
  *     Process the responses as we get them.
- *     Returns when response queue is empty or when the threadd stops.
+ *     Returns when response queue is empty or when the thread stops.
  */
 static void
 service_resp_queue(struct uiscmdrsp *cmdrsp, struct visornic_devdata *devdata,
@@ -2061,6 +2027,21 @@ static int visornic_resume(struct visor_device *dev,
        return 0;
 }
 
+/* This is used to tell the visor bus driver which types of visor devices
+ * we support, and what functions to call when a visor device that we support
+ * is attached or removed.
+ */
+static struct visor_driver visornic_driver = {
+       .name = "visornic",
+       .owner = THIS_MODULE,
+       .channel_types = visornic_channel_types,
+       .probe = visornic_probe,
+       .remove = visornic_remove,
+       .pause = visornic_pause,
+       .resume = visornic_resume,
+       .channel_interrupt = NULL,
+};
+
 /**
  *     visornic_init   - Init function
  *