]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/s390/s390_rdev.c
2 * drivers/s390/s390_rdev.c
5 * Copyright (C) 2002, 2005 IBM Deutschland Entwicklung GmbH,
7 * Author(s): Cornelia Huck (cornelia.huck@de.ibm.com)
8 * Carsten Otte (cotte@de.ibm.com)
11 #include <linux/slab.h>
12 #include <linux/err.h>
13 #include <linux/device.h>
14 #include <asm/s390_rdev.h>
17 s390_root_dev_release(struct device
*dev
)
23 s390_root_dev_register(const char *name
)
29 return ERR_PTR(-EINVAL
);
30 dev
= kzalloc(sizeof(struct device
), GFP_KERNEL
);
32 return ERR_PTR(-ENOMEM
);
33 dev_set_name(dev
, name
);
34 dev
->release
= s390_root_dev_release
;
35 ret
= device_register(dev
);
44 s390_root_dev_unregister(struct device
*dev
)
47 device_unregister(dev
);
50 EXPORT_SYMBOL(s390_root_dev_register
);
51 EXPORT_SYMBOL(s390_root_dev_unregister
);