X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fide%2Fpci%2Ftrm290.c;h=d482d8310069ad39decfaf778fc1b2e8a0bd16bd;hb=9c920a8402f2bb9bd931801d429b65f4eb6a262b;hp=d4c7539309c32e5d6358c0eb3acce5dd58661884;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/ide/pci/trm290.c b/drivers/ide/pci/trm290.c index d4c753930..d482d8310 100644 --- a/drivers/ide/pci/trm290.c +++ b/drivers/ide/pci/trm290.c @@ -3,10 +3,6 @@ * * Copyright (c) 1997-1998 Mark Lord * May be copied or modified under the terms of the GNU General Public License - * - * June 22, 2004 - get rid of check_region - * Jesper Juhl - * */ /* @@ -376,6 +372,16 @@ void __devinit init_hwif_trm290(ide_hwif_t *hwif) if (old != compat && old_mask == 0xff) { /* leave lower 10 bits untouched */ compat += (next_offset += 0x400); +# if 1 + if (check_region(compat + 2, 1)) + printk(KERN_ERR "%s: check_region failure at 0x%04x\n", + hwif->name, (compat + 2)); + /* + * The region check is not needed; however......... + * Since this is the checked in ide-probe.c, + * this is only an assignment. + */ +# endif hwif->io_ports[IDE_CONTROL_OFFSET] = compat + 2; hwif->OUTW(compat|1, hwif->config_data); new = hwif->INW(hwif->config_data);