Merge ../linux-2.6 by hand
[powerpc.git] / drivers / i2c / busses / i2c-viapro.c
index c1c9eb1..c9366b5 100644 (file)
@@ -126,6 +126,8 @@ static void vt596_dump_regs(const char *msg, u8 size)
                printk("%02x\n", inb_p(SMBBLKDAT));
        }
 }
+#else
+static inline void vt596_dump_regs(const char *msg, u8 size) { }
 #endif
 
 /* Return -1 on error, 0 on success */
@@ -135,9 +137,7 @@ static int vt596_transaction(u8 size)
        int result = 0;
        int timeout = 0;
 
-#ifdef DEBUG
        vt596_dump_regs("Transaction (pre)", size);
-#endif
 
        /* Make sure the SMBus host is ready to start transmitting */
        if ((temp = inb_p(SMBHSTSTS)) & 0x1F) {
@@ -192,9 +192,7 @@ static int vt596_transaction(u8 size)
        if (temp & 0x1F)
                outb_p(temp, SMBHSTSTS);
 
-#ifdef DEBUG
        vt596_dump_regs("Transaction (post)", size);
-#endif
 
        return result;
 }
@@ -441,6 +439,7 @@ static struct pci_device_id vt596_ids[] = {
 MODULE_DEVICE_TABLE(pci, vt596_ids);
 
 static struct pci_driver vt596_driver = {
+       .owner          = THIS_MODULE,
        .name           = "vt596_smbus",
        .id_table       = vt596_ids,
        .probe          = vt596_probe,