From: Malcolm Priestley Date: Sun, 10 Aug 2014 14:47:02 +0000 (+0100) Subject: staging: vt6655: device_main Replace DEVICE_INFO with size of pointer X-Git-Tag: v3.18-rc1~130^2~1304 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1bd6375760ef13baeee404276b95034c691f2ed8;p=karo-tx-linux.git staging: vt6655: device_main Replace DEVICE_INFO with size of pointer Signed-off-by: Malcolm Priestley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 4f7509fc17c4..beab35d8a4cb 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -839,7 +839,7 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent) return -ENODEV; } - dev = alloc_etherdev(sizeof(DEVICE_INFO)); + dev = alloc_etherdev(sizeof(*pDevice)); pDevice = netdev_priv(dev); @@ -999,7 +999,7 @@ static void vt6655_init_info(struct pci_dev *pcid, { struct vnt_private *p; - memset(*ppDevice, 0, sizeof(DEVICE_INFO)); + memset(*ppDevice, 0, sizeof(**ppDevice)); if (pDevice_Infos == NULL) { pDevice_Infos = *ppDevice;