]> git.neil.brown.name Git - history.git/commitdiff
add disk device class
authorPatrick Mochel <mochel@osdl.org>
Wed, 25 Sep 2002 08:53:04 +0000 (01:53 -0700)
committerPatrick Mochel <mochel@osdl.org>
Wed, 25 Sep 2002 08:53:04 +0000 (01:53 -0700)
drivers/block/genhd.c
include/linux/genhd.h

index 06f86201a42c31a3dfc39339b1c2aab1ba401478..8fbb2ef3fe427929ab23b646eb73f67c8cd08fc8 100644 (file)
@@ -209,6 +209,10 @@ extern int soc_probe(void);
 extern int atmdev_init(void);
 extern int cpqarray_init(void);
 
+struct device_class disk_devclass = {
+       .name           = "disk",
+};
+
 int __init device_init(void)
 {
        int i;
@@ -226,7 +230,11 @@ int __init device_init(void)
 #ifdef CONFIG_ATM
        (void) atmdev_init();
 #endif
+
+       devclass_register(&disk_devclass);
        return 0;
 }
 
 __initcall(device_init);
+
+EXPORT_SYMBOL(disk_devclass);
index 33cfbe2f110812ab307cd751bc474625536402ab..ff63624d7c644c6f5697effe010ee2c863f06160 100644 (file)
@@ -109,6 +109,8 @@ static inline void set_capacity(struct gendisk *disk, sector_t size)
        disk->capacity = size;
 }
 
+extern struct device_class disk_devclass;
+
 #endif  /*  __KERNEL__  */
 
 #ifdef CONFIG_SOLARIS_X86_PARTITION