Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6.git] / drivers / net / vxge / vxge-ethtool.c
index aaf374c..cadef85 100644 (file)
@@ -109,7 +109,7 @@ static void vxge_ethtool_gregs(struct net_device *dev,
        int index, offset;
        enum vxge_hw_status status;
        u64 reg;
-       u8 *reg_space = (u8 *) space;
+       u64 *reg_space = (u64 *) space;
        struct vxgedev *vdev = (struct vxgedev *)netdev_priv(dev);
        struct __vxge_hw_device  *hldev = (struct __vxge_hw_device *)
                                        pci_get_drvdata(vdev->pdev);
@@ -129,8 +129,7 @@ static void vxge_ethtool_gregs(struct net_device *dev,
                                                __func__, __LINE__);
                                return;
                        }
-
-                       memcpy((reg_space + offset), &reg, 8);
+                       *reg_space++ = reg;
                }
        }
 }