summaryrefslogtreecommitdiff
path: root/include/linux/genhd.h
diff options
context:
space:
mode:
authorAlexander Viro <viro@www.linux.org.uk>2003-05-24 21:41:53 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-05-24 21:41:53 -0700
commit106a92d12dc1fbe260b89d3783bcdf96a74656d3 (patch)
tree45da41cda914333c67e8733ae829d65ccc4fd452 /include/linux/genhd.h
parent93e0e677f4108d423b5e73ec9f13c1e900f14a89 (diff)
[PATCH] switch blk_register_area() to kobject
preparation to cdev-cidr - the lookup mechanism for gendisks is switched to dealing with disk->kobj instead of disk.
Diffstat (limited to 'include/linux/genhd.h')
-rw-r--r--include/linux/genhd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 7103121f4c9a..8020d5dfa91b 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -365,12 +365,12 @@ extern void add_partition(struct gendisk *, int, sector_t, sector_t);
extern void delete_partition(struct gendisk *, int);
extern struct gendisk *alloc_disk(int minors);
-extern struct gendisk *get_disk(struct gendisk *disk);
+extern struct kobject *get_disk(struct gendisk *disk);
extern void put_disk(struct gendisk *disk);
extern void blk_register_region(dev_t dev, unsigned long range,
struct module *module,
- struct gendisk *(*probe)(dev_t, int *, void *),
+ struct kobject *(*probe)(dev_t, int *, void *),
int (*lock)(dev_t, void *),
void *data);
extern void blk_unregister_region(dev_t dev, unsigned long range);