Dan Williams 0d52c756a6 block: convert to device_add_disk()
For block drivers that specify a parent device, convert them to use
device_add_disk().

This conversion was done with the following semantic patch:

    @@
    struct gendisk *disk;
    expression E;
    @@

    - disk->driverfs_dev = E;
    ...
    - add_disk(disk);
    + device_add_disk(E, disk);

    @@
    struct gendisk *disk;
    expression E1, E2;
    @@

    - disk->driverfs_dev = E1;
    ...
    E2 = disk;
    ...
    - add_disk(E2);
    + device_add_disk(E1, E2);

...plus some manual fixups for a few missed conversions.

Cc: Jens Axboe <axboe@fb.com>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: James Bottomley <James.Bottomley@hansenpartnership.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Martin K. Petersen <martin.petersen@oracle.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>
2016-06-27 12:26:08 -07:00
..
2015-04-17 15:32:07 -04:00
2013-11-14 18:21:25 -05:00
2016-06-27 12:26:08 -07:00
2011-03-09 19:54:27 +01:00
2015-05-05 13:40:42 -06:00
2016-06-07 13:41:38 -06:00
2016-06-27 12:26:08 -07:00
2009-03-27 12:46:34 +01:00
2009-05-17 19:12:25 +02:00
2015-05-05 13:40:42 -06:00
2015-03-27 11:59:22 -04:00
2010-01-19 11:30:09 -08:00
2016-01-18 14:12:33 -05:00
2016-01-18 14:12:33 -05:00
2015-04-14 13:07:17 -04:00
2015-04-14 13:07:17 -04:00
2013-01-03 15:57:03 -08:00
2016-01-18 14:12:33 -05:00