Commit abe2e064 authored by Patrick Mochel's avatar Patrick Mochel

add disk device class

parent cd585d2f
...@@ -209,6 +209,10 @@ extern int soc_probe(void); ...@@ -209,6 +209,10 @@ extern int soc_probe(void);
extern int atmdev_init(void); extern int atmdev_init(void);
extern int cpqarray_init(void); extern int cpqarray_init(void);
struct device_class disk_devclass = {
.name = "disk",
};
int __init device_init(void) int __init device_init(void)
{ {
int i; int i;
...@@ -226,7 +230,11 @@ int __init device_init(void) ...@@ -226,7 +230,11 @@ int __init device_init(void)
#ifdef CONFIG_ATM #ifdef CONFIG_ATM
(void) atmdev_init(); (void) atmdev_init();
#endif #endif
devclass_register(&disk_devclass);
return 0; return 0;
} }
__initcall(device_init); __initcall(device_init);
EXPORT_SYMBOL(disk_devclass);
...@@ -109,6 +109,8 @@ static inline void set_capacity(struct gendisk *disk, sector_t size) ...@@ -109,6 +109,8 @@ static inline void set_capacity(struct gendisk *disk, sector_t size)
disk->capacity = size; disk->capacity = size;
} }
extern struct device_class disk_devclass;
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
#ifdef CONFIG_SOLARIS_X86_PARTITION #ifdef CONFIG_SOLARIS_X86_PARTITION
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment