diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-06-15 19:43:07 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-06-27 12:26:08 -0700 |
commit | 52c44d93c26f5a76068c0a8cc83bb8f56f38043d (patch) | |
tree | f069a8e70d809c950a491c505faf460bb4b4fa62 /include/linux/genhd.h | |
parent | 0d52c756a665adc032c791307bc55e392b0186b3 (diff) | |
download | op-kernel-dev-52c44d93c26f5a76068c0a8cc83bb8f56f38043d.zip op-kernel-dev-52c44d93c26f5a76068c0a8cc83bb8f56f38043d.tar.gz |
block: remove ->driverfs_dev
Now that all drivers that specify a ->driverfs_dev have been converted
to device_add_disk(), the pointer can be removed from struct gendisk.
Cc: Jens Axboe <axboe@fb.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/genhd.h')
-rw-r--r-- | include/linux/genhd.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index df1dabb..1dbf52f 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -205,7 +205,6 @@ struct gendisk { void *private_data; int flags; - struct device *driverfs_dev; // FIXME: remove struct kobject *slave_dir; struct timer_rand_state *random; @@ -417,8 +416,7 @@ extern void part_round_stats(int cpu, struct hd_struct *part); extern void device_add_disk(struct device *parent, struct gendisk *disk); static inline void add_disk(struct gendisk *disk) { - /* temporary while we convert callers to device_add_disk */ - device_add_disk(disk->driverfs_dev, disk); + device_add_disk(NULL, disk); } extern void del_gendisk(struct gendisk *gp); |