diff options
| author | Patrick Mochel <mochel@osdl.org> | 2002-10-30 18:02:20 -0800 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2002-10-30 18:02:20 -0800 |
| commit | 161e49bcf639b5f2e5d28c4b8dfed1e9438b62de (patch) | |
| tree | 31d83fe1eab2970f2a314836e9d152fb2e686cfe /include/linux | |
| parent | d7dce5e30c987d2df928784bbba2ab6caca180e9 (diff) | |
convert block devices and partitions to use kobject & sysfs.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/genhd.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index ff1885251c12..548e477daa4b 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -62,7 +62,7 @@ struct hd_struct { sector_t start_sect; sector_t nr_sects; devfs_handle_t de; /* primary (master) devfs entry */ - struct device *hd_driverfs_dev; /* support driverfs hiearchy */ + struct kobject kobj; unsigned reads, read_sectors, writes, write_sectors; int policy; }; @@ -93,7 +93,7 @@ struct gendisk { devfs_handle_t de; /* more of the same */ devfs_handle_t disk_de; /* piled higher and deeper */ struct device *driverfs_dev; - struct device disk_dev; + struct kobject kobj; struct timer_rand_state *random; int policy; @@ -130,8 +130,6 @@ 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 |
