Skip to contentSkip to conversation

remove old ifdefs

patch-kj maximilian attems 1 participant 1 message Jul 23, 2004 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Patches to remove some old ifdefs.
remove most of the #include <linux/version.h>
kill compat cruft like #define ahd_pci_set_dma_mask pci_set_dma_mask

applies cleanly to 2.6.8-rc2

From: Domen Puncer <[email protected]>

---

 linux-2.6.7-bk20-max/include/linux/mtd/cfi.h |    2 --
 1 files changed, 2 deletions(-)
include/linux/mtd/cfi.h renamed from include/linux/mtd/cfi.h~remove-old-ifdefs-mtd-cfi +0 -2
diff -puN include/linux/mtd/cfi.h~remove-old-ifdefs-mtd-cfi include/linux/mtd/cfi.h
@@ -458,14 +458,12 @@ static inline __u8 cfi_read_query(struct
 
 static inline void cfi_udelay(int us)
 {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,2,0)
 	unsigned long t = us * HZ / 1000000;
 	if (t) {
 		set_current_state(TASK_UNINTERRUPTIBLE);
 		schedule_timeout(t);
 		return;
 	}
-#endif
 	udelay(us);
 	cond_resched();
 }