wax.c (3d5271f9883cba7b54762bc4fe027d4172f06db7) | wax.c (cb6fc18e9ca615f03d18e60c49855b434ca2e51e) |
---|---|
1/* 2 * WAX Device Driver 3 * 4 * (c) Copyright 2000 The Puffin Group Inc. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 62 unchanged lines hidden (view full) --- 71int __init 72wax_init_chip(struct parisc_device *dev) 73{ 74 struct gsc_asic *wax; 75 struct parisc_device *parent; 76 struct gsc_irq gsc_irq; 77 int ret; 78 | 1/* 2 * WAX Device Driver 3 * 4 * (c) Copyright 2000 The Puffin Group Inc. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 62 unchanged lines hidden (view full) --- 71int __init 72wax_init_chip(struct parisc_device *dev) 73{ 74 struct gsc_asic *wax; 75 struct parisc_device *parent; 76 struct gsc_irq gsc_irq; 77 int ret; 78 |
79 wax = kmalloc(sizeof(*wax), GFP_KERNEL); | 79 wax = kzalloc(sizeof(*wax), GFP_KERNEL); |
80 if (!wax) 81 return -ENOMEM; 82 83 wax->name = "wax"; 84 wax->hpa = dev->hpa.start; 85 86 wax->version = 0; /* gsc_readb(wax->hpa+WAX_VER); */ 87 printk(KERN_INFO "%s at 0x%lx found.\n", wax->name, wax->hpa); --- 53 unchanged lines hidden --- | 80 if (!wax) 81 return -ENOMEM; 82 83 wax->name = "wax"; 84 wax->hpa = dev->hpa.start; 85 86 wax->version = 0; /* gsc_readb(wax->hpa+WAX_VER); */ 87 printk(KERN_INFO "%s at 0x%lx found.\n", wax->name, wax->hpa); --- 53 unchanged lines hidden --- |