#define IFCVF_DBG(pdev, fmt, ...)      dev_dbg(&pdev->dev, fmt, ##__VA_ARGS__)
 #define IFCVF_INFO(pdev, fmt, ...)     dev_info(&pdev->dev, fmt, ##__VA_ARGS__)
 
-#define ifcvf_private_to_vf(adapter) \
-       (((struct ifcvf_adapter *)adapter)->vf)
-
 /* all vqs and config interrupt has its own vector */
 #define MSIX_VECTOR_PER_VQ_AND_CONFIG          1
 /* all vqs share a vector, and config interrupt has a separate vector */
 
        return 0;
 }
 
-static int ifcvf_start_datapath(void *private)
+static int ifcvf_start_datapath(struct ifcvf_adapter *adapter)
 {
-       struct ifcvf_hw *vf = ifcvf_private_to_vf(private);
+       struct ifcvf_hw *vf = adapter->vf;
        u8 status;
        int ret;
 
        return ret;
 }
 
-static int ifcvf_stop_datapath(void *private)
+static int ifcvf_stop_datapath(struct ifcvf_adapter *adapter)
 {
-       struct ifcvf_hw *vf = ifcvf_private_to_vf(private);
+       struct ifcvf_hw *vf = adapter->vf;
        int i;
 
        for (i = 0; i < vf->nr_vring; i++)
 
 static void ifcvf_reset_vring(struct ifcvf_adapter *adapter)
 {
-       struct ifcvf_hw *vf = ifcvf_private_to_vf(adapter);
+       struct ifcvf_hw *vf = adapter->vf;
        int i;
 
        for (i = 0; i < vf->nr_vring; i++) {