summaryrefslogtreecommitdiff
path: root/drivers/memstick/core/mspro_block.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2025-09-03 15:15:43 -0600
committerJens Axboe <axboe@kernel.dk>2025-09-03 15:15:43 -0600
commit4dbe13c78447450ee133fc3399ebcabe27a62164 (patch)
treecdd060a2ac095d7f68da9377606837cda441f19a /drivers/memstick/core/mspro_block.c
parentb0b4518c992eb5f316c6e40ff186cbb7a5009518 (diff)
parent4fc8728aa34f54835b72e4db0f3db76a72948b65 (diff)
downloadlinux-next-4dbe13c78447450ee133fc3399ebcabe27a62164.tar.gz
linux-next-4dbe13c78447450ee133fc3399ebcabe27a62164.zip
Merge tag 'pull-getgeo' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs into for-6.18/block
Pull struct block_device getgeo changes from Al. "switching ->getgeo() from struct block_device to struct gendisk Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>" * tag 'pull-getgeo' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: block: switch ->getgeo() to struct gendisk scsi: switch ->bios_param() to passing gendisk scsi: switch scsi_bios_ptable() and scsi_partsize() to gendisk
Diffstat (limited to 'drivers/memstick/core/mspro_block.c')
-rw-r--r--drivers/memstick/core/mspro_block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/memstick/core/mspro_block.c b/drivers/memstick/core/mspro_block.c
index c9853d887d28..075519caa547 100644
--- a/drivers/memstick/core/mspro_block.c
+++ b/drivers/memstick/core/mspro_block.c
@@ -189,10 +189,10 @@ static void mspro_block_bd_free_disk(struct gendisk *disk)
kfree(msb);
}
-static int mspro_block_bd_getgeo(struct block_device *bdev,
+static int mspro_block_bd_getgeo(struct gendisk *disk,
struct hd_geometry *geo)
{
- struct mspro_block_data *msb = bdev->bd_disk->private_data;
+ struct mspro_block_data *msb = disk->private_data;
geo->heads = msb->heads;
geo->sectors = msb->sectors_per_track;