summaryrefslogtreecommitdiffstats
path: root/drivers/ide/hd.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-06-16 23:00:36 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-06-16 23:00:36 +0000
commit14dd2ec093cfabda3ae7efeeaf0e23c66ebaccc0 (patch)
tree9a9ce5cff6ef92faa6e07a82785b9a6d6838f7e4 /drivers/ide/hd.c
parent847290510f811c572cc2aa80c1f02a04721410b1 (diff)
Merge with 2.4.0-test1.
Diffstat (limited to 'drivers/ide/hd.c')
-rw-r--r--drivers/ide/hd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ide/hd.c b/drivers/ide/hd.c
index 1c6a0b286..eb73c2445 100644
--- a/drivers/ide/hd.c
+++ b/drivers/ide/hd.c
@@ -778,6 +778,8 @@ static void hd_geninit(void)
#endif
for (drive=0 ; drive < NR_HD ; drive++) {
+ hd[drive<<6].nr_sects = hd_info[drive].head *
+ hd_info[drive].sect * hd_info[drive].cyl;
printk ("hd%c: %ldMB, CHS=%d/%d/%d\n", drive+'a',
hd[drive<<6].nr_sects / 2048, hd_info[drive].cyl,
hd_info[drive].head, hd_info[drive].sect);
@@ -890,3 +892,4 @@ static int parse_hd_setup (char *line) {
return 0;
}
__setup("hd=", parse_hd_setup);
+