diff -ruN dist-2.4.12+patches/drivers/ide/ide-disk.c cvs-2.4.12+patches/drivers/ide/ide-disk.c --- dist-2.4.12+patches/drivers/ide/ide-disk.c Mon Oct 15 10:21:49 2001 +++ cvs-2.4.12+patches/drivers/ide/ide-disk.c Mon Oct 15 10:21:49 2001 @@ -569,13 +569,13 @@ drive->special.b.set_multmode = 1; } -#ifdef CONFIG_PROC_FS - static int smart_enable(ide_drive_t *drive) { return ide_wait_cmd(drive, WIN_SMART, 0, SMART_ENABLE, 0, NULL); } +#ifdef CONFIG_PROC_FS + static int get_smart_values(ide_drive_t *drive, byte *buf) { (void) smart_enable(drive); @@ -799,6 +799,7 @@ #endif } drive->no_io_32bit = id->dword_io ? 1 : 0; + (void) smart_enable(drive); } static int idedisk_reinit (ide_drive_t *drive)