I have already applied the CMOS probe removal patch to my personal tree
and it turns out any obvious things. However I still don't see how it 
may simplify the ide.c code further...
to indeed not break
> 
> diff -u linux-r/drivers/ide-old/ide-disk.c linux-r/drivers/ide/ide-disk.c
> --- linux-r/drivers/ide-old/ide-disk.c	Fri May 26 16:37:43 2000
> +++ linux-r/drivers/ide/ide-disk.c	Sat May 27 14:33:27 2000
> @@ -519,7 +519,6 @@
>  
>  /*
>   * Compute drive->capacity, the full capacity of the drive
> - * Called with drive->id != NULL.
>   */
>  static void init_idedisk_capacity (ide_drive_t  *drive)
>  {
> @@ -529,7 +528,7 @@
>  	drive->select.b.lba = 0;
>  
>  	/* Determine capacity, and use LBA if the drive properly supports it */
> -	if ((id->capability & 2) && lba_capacity_is_ok(id)) {
> +	if (id != NULL && (id->capability & 2) && lba_capacity_is_ok(id)) {
>  		capacity = id->lba_capacity;
>  		drive->cyl = capacity / (drive->head * drive->sect);
>  		drive->select.b.lba = 1;
> @@ -759,8 +758,10 @@
>  	
>  	idedisk_add_settings(drive);
>  
> -	if (id == NULL)
> +	if (id == NULL) {	/* Old, non-IDE drive */
> +		init_idedisk_capacity(drive);
>  		return;
> +	}
>  
>  	/*
>  	 * CompactFlash cards and their brethern look just like hard drives
> 
> 
> 
-- - phone: +49 214 8656 283 - job: eVision-Ventures AG, LEV .de (MY OPINIONS ARE MY OWN!) - langs: de_DE.ISO8859-1, en_US, pl_PL.ISO8859-2, last ressort: ru_RU.KOI8-R- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/