* It returns the number of allocated vectors, negative
  * return value when fails.
  */
-static int ifcvf_alloc_vectors(struct ifcvf_adapter *adapter)
+static int ifcvf_alloc_vectors(struct ifcvf_hw *vf)
 {
-       struct pci_dev *pdev = adapter->pdev;
-       struct ifcvf_hw *vf = &adapter->vf;
+       struct pci_dev *pdev = vf->pdev;
        int max_intr, ret;
 
        /* all queues and config interrupt  */
        return -EFAULT;
 }
 
-static int ifcvf_request_dev_irq(struct ifcvf_adapter *adapter)
+static int ifcvf_request_dev_irq(struct ifcvf_hw *vf)
 {
-       struct pci_dev *pdev = adapter->pdev;
-       struct ifcvf_hw *vf = &adapter->vf;
+       struct pci_dev *pdev = vf->pdev;
        int i, vector, ret, irq;
 
        vector = 0;
        return ret;
 }
 
-static int ifcvf_request_config_irq(struct ifcvf_adapter *adapter)
+static int ifcvf_request_config_irq(struct ifcvf_hw *vf)
 {
-       struct pci_dev *pdev = adapter->pdev;
-       struct ifcvf_hw *vf = &adapter->vf;
+       struct pci_dev *pdev = vf->pdev;
        int config_vector, ret;
 
        if (vf->msix_vector_status == MSIX_VECTOR_PER_VQ_AND_CONFIG)
        struct ifcvf_hw *vf = &adapter->vf;
        int nvectors, ret, max_intr;
 
-       nvectors = ifcvf_alloc_vectors(adapter);
+       nvectors = ifcvf_alloc_vectors(vf);
        if (nvectors <= 0)
                return -EFAULT;
 
 
        if (nvectors == 1) {
                vf->msix_vector_status = MSIX_VECTOR_DEV_SHARED;
-               ret = ifcvf_request_dev_irq(adapter);
+               ret = ifcvf_request_dev_irq(vf);
 
                return ret;
        }
        if (ret)
                return ret;
 
-       ret = ifcvf_request_config_irq(adapter);
+       ret = ifcvf_request_config_irq(vf);
 
        if (ret)
                return ret;