On Fri, Mar 11, 2016 at 07:47:38AM -0800, Dan Williams wrote:
> 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 <[email protected]>
> Cc: Christoph Hellwig <[email protected]>
> Cc: Keith Busch <[email protected]>
> Cc: Michael S. Tsirkin <[email protected]>
> Cc: Ulf Hansson <[email protected]>
> Cc: David Woodhouse <[email protected]>
> Cc: David S. Miller <[email protected]>
> Cc: James Bottomley <[email protected]>
> Cc: Ross Zwisler <[email protected]>
> Cc: Konrad Rzeszutek Wilk <[email protected]>
> Cc: Martin K. Petersen <[email protected]>
> Signed-off-by: Dan Williams <[email protected]>

Reviewed-by: Johannes Thumshirn <[email protected]>

-- 
Johannes Thumshirn                                          Storage
[email protected]                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850

Reply via email to