diff options
author | Paul Mackerras <paulus@samba.org> | 2007-07-10 23:28:26 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-07-10 23:28:26 -0400 |
commit | bf22f6fe2d72b4d7e9035be8ceb340414cf490e3 (patch) | |
tree | 14085d90de0428316479fe6de8a0c6d32e6e65e2 /drivers/block | |
parent | 4eb6bf6bfb580afaf1e1a1d30cba17a078530cf4 (diff) | |
parent | 93ab471889c6662b42ce7da257f31f24c08d7d9e (diff) |
Merge branch 'for-2.6.23' into merge
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/viodasd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/viodasd.c b/drivers/block/viodasd.c index 68592c336011..dae39911a11d 100644 --- a/drivers/block/viodasd.c +++ b/drivers/block/viodasd.c | |||
@@ -252,10 +252,10 @@ static int viodasd_getgeo(struct block_device *bdev, struct hd_geometry *geo) | |||
252 | struct gendisk *disk = bdev->bd_disk; | 252 | struct gendisk *disk = bdev->bd_disk; |
253 | struct viodasd_device *d = disk->private_data; | 253 | struct viodasd_device *d = disk->private_data; |
254 | 254 | ||
255 | geo->sectors = d->sectors ? d->sectors : 0; | 255 | geo->sectors = d->sectors ? d->sectors : 32; |
256 | geo->heads = d->tracks ? d->tracks : 64; | 256 | geo->heads = d->tracks ? d->tracks : 64; |
257 | geo->cylinders = d->cylinders ? d->cylinders : | 257 | geo->cylinders = d->cylinders ? d->cylinders : |
258 | get_capacity(disk) / (geo->cylinders * geo->heads); | 258 | get_capacity(disk) / (geo->sectors * geo->heads); |
259 | 259 | ||
260 | return 0; | 260 | return 0; |
261 | } | 261 | } |