OSDN Git Service

[PATCH] fix build of serial with DEBUG enabled
authorAndrzej Stypula <andrzej@altair.krakow.pl>
Sat, 20 Jan 2007 12:44:43 +0000 (13:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 25 Feb 2007 07:16:39 +0000 (08:16 +0100)
This patch corrects define statement and variable name. Without this
patch is impossible to compile the serial driver with debug information.
This is probably copy/paste mistake from 2.2 or whatever.

drivers/char/serial.c

index d07364b..3aaf13c 100644 (file)
@@ -935,7 +935,7 @@ static void rs_interrupt_single(int irq, void *dev_id, struct pt_regs * regs)
                        transmit_chars(info, 0);
 #endif
                if (pass_counter++ > RS_ISR_PASS_LIMIT) {
-#if SERIAL_DEBUG_INTR
+#ifdef SERIAL_DEBUG_INTR
                        printk("rs_single loop break.\n");
 #endif
                        break;
@@ -4214,7 +4214,7 @@ pci_inteli960ni_fn(struct pci_dev *dev,
    
 #ifdef SERIAL_DEBUG_PCI
        printk(KERN_DEBUG " Subsystem ID %lx (intel 960)\n",
-              (unsigned long) board->subdevice);
+              (unsigned long) dev->subsystem_device);
 #endif
        /* is firmware started? */
        pci_read_config_dword(dev, 0x44, (void*) &oldval);