| * drivers/s390/s390_rdev.c |
| * Copyright (C) 2002, 2005 IBM Deutschland Entwicklung GmbH, |
| * Author(s): Cornelia Huck (cornelia.huck@de.ibm.com) |
| * Carsten Otte (cotte@de.ibm.com) |
| #include <linux/device.h> |
| #include <asm/s390_rdev.h> |
| s390_root_dev_release(struct device *dev) |
| s390_root_dev_register(const char *name) |
| dev = kzalloc(sizeof(struct device), GFP_KERNEL); |
| strncpy(dev->bus_id, name, min(strlen(name), (size_t)BUS_ID_SIZE)); |
| dev->release = s390_root_dev_release; |
| ret = device_register(dev); |
| s390_root_dev_unregister(struct device *dev) |
| EXPORT_SYMBOL(s390_root_dev_register); |
| EXPORT_SYMBOL(s390_root_dev_unregister); |