mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.5 patch] 2.4.21-rc1 pointless IDE noise reduction
@ 2003-05-18 13:06 Adrian Bunk
  2003-05-18 22:13 ` Andre Hedrick
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2003-05-18 13:06 UTC (permalink / raw)
  To: alan; +Cc: linux-kernel, Erik Andersen, trivial

Below is a 2.5 version of the patch to remove 
idedisk_supports_host_protected_area.

I've tested the compilation with 2.5.69-mm6.

cu
Adrian


--- linux-2.5.69-mm6/drivers/ide/ide-disk.c.old	2003-05-18 14:55:31.000000000 +0200
+++ linux-2.5.69-mm6/drivers/ide/ide-disk.c	2003-05-18 14:56:17.000000000 +0200
@@ -1064,18 +1064,6 @@
 #endif /* CONFIG_IDEDISK_STROKE */
 
 /*
- * Tests if the drive supports Host Protected Area feature.
- * Returns true if supported, false otherwise.
- */
-static inline int idedisk_supports_host_protected_area(ide_drive_t *drive)
-{
-	int flag = (drive->id->cfs_enable_1 & 0x0400) ? 1 : 0;
-	if (flag)
-		printk(KERN_INFO "%s: host protected area => %d\n", drive->name, flag);
-	return flag;
-}
-
-/*
  * Compute drive->capacity, the full capacity of the drive
  * Called with drive->id != NULL.
  *
@@ -1101,8 +1089,6 @@
 	drive->capacity48 = 0;
 	drive->select.b.lba = 0;
 
-	(void) idedisk_supports_host_protected_area(drive);
-
 	if (id->cfs_enable_2 & 0x0400) {
 		capacity_2 = id->lba_capacity_2;
 		drive->head		= drive->bios_head = 255;


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-05-18 23:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-18 13:06 [2.5 patch] 2.4.21-rc1 pointless IDE noise reduction Adrian Bunk
2003-05-18 22:13 ` Andre Hedrick
2003-05-18 23:08   ` Erik Andersen
2003-05-18 23:36   ` Bartlomiej Zolnierkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®