drivers.c (944d79559d154c12becde0dab327016cf438f46c) drivers.c (cb6fc18e9ca615f03d18e60c49855b434ca2e51e)
1/*
2 * drivers.c
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 394 unchanged lines hidden (view full) ---

403 continue;
404 output += sprintf(output, "%u:", (unsigned char) path.bc[i]);
405 }
406 sprintf(output, "%u", (unsigned char) padev->hw_path);
407}
408
409struct parisc_device * create_tree_node(char id, struct device *parent)
410{
1/*
2 * drivers.c
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 394 unchanged lines hidden (view full) ---

403 continue;
404 output += sprintf(output, "%u:", (unsigned char) path.bc[i]);
405 }
406 sprintf(output, "%u", (unsigned char) padev->hw_path);
407}
408
409struct parisc_device * create_tree_node(char id, struct device *parent)
410{
411 struct parisc_device *dev = kmalloc(sizeof(*dev), GFP_KERNEL);
411 struct parisc_device *dev = kzalloc(sizeof(*dev), GFP_KERNEL);
412 if (!dev)
413 return NULL;
414
412 if (!dev)
413 return NULL;
414
415 memset(dev, 0, sizeof(*dev));
416 dev->hw_path = id;
417 dev->id.hw_type = HPHW_FAULTY;
418
419 dev->dev.parent = parent;
420 setup_bus_id(dev);
421
422 dev->dev.bus = &parisc_bus_type;
423 dev->dma_mask = 0xffffffffUL; /* PARISC devices are 32-bit */

--- 452 unchanged lines hidden ---
415 dev->hw_path = id;
416 dev->id.hw_type = HPHW_FAULTY;
417
418 dev->dev.parent = parent;
419 setup_bus_id(dev);
420
421 dev->dev.bus = &parisc_bus_type;
422 dev->dma_mask = 0xffffffffUL; /* PARISC devices are 32-bit */

--- 452 unchanged lines hidden ---