RE: [patch] Remove code that has long been commented out from pdc20265_old

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Tobias Oed <[email protected]>

diff -r -u linux-2.6.17-1/drivers/ide/pci/pdc202xx_old.c linux-2.6.17-2/drivers/ide/pci/pdc202xx_old.c --- linux-2.6.17-1/drivers/ide/pci/pdc202xx_old.c 2006-06-18 19:00:34.000000000 +0200 +++ linux-2.6.17-2/drivers/ide/pci/pdc202xx_old.c 2006-06-18 19:00:57.000000000 +0200
@@ -415,8 +415,6 @@
       if (drive->addressing == 1) {
               struct request *rq      = HWGROUP(drive)->rq;
               ide_hwif_t *hwif        = HWIF(drive);
-//             struct pci_dev *dev     = hwif->pci_dev;
-//             unsgned long high_16    = pci_resource_start(dev, 4);
               unsigned long high_16   = hwif->dma_master;
unsigned long atapi_reg = high_16 + (hwif->channel ? 0x24 : 0x20);
               u32 word_count  = 0;
@@ -436,7 +434,6 @@
{
       if (drive->addressing == 1) {
               ide_hwif_t *hwif        = HWIF(drive);
-// unsigned long high_16 = pci_resource_start(hwif->pci_dev, 4);
               unsigned long high_16   = hwif->dma_master;
unsigned long atapi_reg = high_16 + (hwif->channel ? 0x24 : 0x20);
               u8 clock                = 0;
@@ -453,8 +450,6 @@
static int pdc202xx_old_ide_dma_test_irq(ide_drive_t *drive)
{
       ide_hwif_t *hwif        = HWIF(drive);
-//     struct pci_dev *dev     = hwif->pci_dev;
-//     unsigned long high_16   = pci_resource_start(dev, 4);
       unsigned long high_16   = hwif->dma_master;
       u8 dma_stat             = hwif->INB(hwif->dma_status);
       u8 sc1d                 = hwif->INB((high_16 + 0x001d));
@@ -492,7 +487,6 @@

static void pdc202xx_reset_host (ide_hwif_t *hwif)
{
-//     unsigned long high_16   = hwif->dma_base - (8*(hwif->channel));
       unsigned long high_16   = hwif->dma_master;
       u8 udma_speed_flag      = hwif->INB(high_16|0x001f);

@@ -554,7 +548,6 @@
static int pdc202xx_tristate (ide_drive_t * drive, int state)
{
       ide_hwif_t *hwif        = HWIF(drive);
-//     unsigned long high_16   = hwif->dma_base - (8*(hwif->channel));
       unsigned long high_16   = hwif->dma_master;
       u8 sc1f                 = hwif->INB(high_16|0x001f);

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux