lasi.c (944d79559d154c12becde0dab327016cf438f46c) | lasi.c (cb6fc18e9ca615f03d18e60c49855b434ca2e51e) |
---|---|
1/* 2 * LASI Device Driver 3 * 4 * (c) Copyright 1999 Red Hat Software 5 * Portions (c) Copyright 1999 The Puffin Group Inc. 6 * Portions (c) Copyright 1999 Hewlett-Packard 7 * 8 * This program is free software; you can redistribute it and/or modify --- 156 unchanged lines hidden (view full) --- 165 166int __init 167lasi_init_chip(struct parisc_device *dev) 168{ 169 struct gsc_asic *lasi; 170 struct gsc_irq gsc_irq; 171 int ret; 172 | 1/* 2 * LASI Device Driver 3 * 4 * (c) Copyright 1999 Red Hat Software 5 * Portions (c) Copyright 1999 The Puffin Group Inc. 6 * Portions (c) Copyright 1999 Hewlett-Packard 7 * 8 * This program is free software; you can redistribute it and/or modify --- 156 unchanged lines hidden (view full) --- 165 166int __init 167lasi_init_chip(struct parisc_device *dev) 168{ 169 struct gsc_asic *lasi; 170 struct gsc_irq gsc_irq; 171 int ret; 172 |
173 lasi = kmalloc(sizeof(*lasi), GFP_KERNEL); | 173 lasi = kzalloc(sizeof(*lasi), GFP_KERNEL); |
174 if (!lasi) 175 return -ENOMEM; 176 177 lasi->name = "Lasi"; 178 lasi->hpa = dev->hpa.start; 179 180 /* Check the 4-bit (yes, only 4) version register */ 181 lasi->version = gsc_readl(lasi->hpa + LASI_VER) & 0xf; --- 58 unchanged lines hidden --- | 174 if (!lasi) 175 return -ENOMEM; 176 177 lasi->name = "Lasi"; 178 lasi->hpa = dev->hpa.start; 179 180 /* Check the 4-bit (yes, only 4) version register */ 181 lasi->version = gsc_readl(lasi->hpa + LASI_VER) & 0xf; --- 58 unchanged lines hidden --- |