2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00
linux-next/drivers/block/rsxx
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
..
config.c block: IBM RamSan 70/80 branding changes. 2013-03-11 19:53:55 +01:00
core.c rsxx: don't open-code memdup_user() 2016-01-06 08:25:24 -05:00
cregs.c rsxx: Adding EEH check inside cregs timeout. 2013-06-19 13:52:10 +02:00
dev.c block: convert to device_add_disk() 2016-06-27 12:26:08 -07:00
dma.c block, fs, mm, drivers: use bio set/get op accessors 2016-06-07 13:41:38 -06:00
Makefile block: IBM RamSan 70/80 branding changes. 2013-03-11 19:53:55 +01:00
rsxx_cfg.h block: IBM RamSan 70/80 branding changes. 2013-03-11 19:53:55 +01:00
rsxx_priv.h rsxx: Fix possible kernel panic with invalid config. 2013-11-08 09:10:29 -07:00
rsxx.h block: IBM RamSan 70/80 trivial changes. 2013-03-11 19:53:55 +01:00