block: introduce device_add_disk()
authorDan Williams <dan.j.williams@intel.com>
Thu, 16 Jun 2016 01:17:27 +0000 (18:17 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 16 Jun 2016 02:53:06 +0000 (19:53 -0700)
commite63a46bef01ff3064f44dba145833284fb6adeec
tree01890349347ab2a8bf4ac1bb42004647d88ea4bf
parent1b57e66384e2d21150301e68078526fac5680a16
block: introduce device_add_disk()

In preparation for removing the ->driverfs_dev member of a gendisk, add
an api that takes the parent device as a parameter to add_disk().  For
now this maintains the status quo of WARN()ing on failure, but not
return a error code.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
block/genhd.c
include/linux/genhd.h