Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60675
b: refs/heads/master
c: 36a7003
h: refs/heads/master
i:
  60673: bf879a3
  60671: e9fa1c9
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Jul 10, 2007
1 parent 94ea766 commit 081161b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8ce2272becc87894d95cbdbba42ae72115131f2
refs/heads/master: 36a700307ece3ca090d1f8f071db085087ddc627
4 changes: 2 additions & 2 deletions trunk/drivers/block/viodasd.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@ static int viodasd_getgeo(struct block_device *bdev, struct hd_geometry *geo)
struct gendisk *disk = bdev->bd_disk;
struct viodasd_device *d = disk->private_data;

geo->sectors = d->sectors ? d->sectors : 0;
geo->sectors = d->sectors ? d->sectors : 32;
geo->heads = d->tracks ? d->tracks : 64;
geo->cylinders = d->cylinders ? d->cylinders :
get_capacity(disk) / (geo->cylinders * geo->heads);
get_capacity(disk) / (geo->sectors * geo->heads);

return 0;
}
Expand Down

0 comments on commit 081161b

Please sign in to comment.