]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/i2c/busses/i2c-ite.c
[PATCH] proper flags type of spin_lock_irqsave()
[linux-2.6-omap-h63xx.git] / drivers / i2c / busses / i2c-ite.c
index 5f5d2944808b8b4b531896aad492c5f6ac0d834a..559a62b04ee9aa0269c69ae6104725b53aabe783 100644 (file)
@@ -109,7 +109,7 @@ static int iic_ite_getclock(void *data)
 static void iic_ite_waitforpin(void) {
    DEFINE_WAIT(wait);
    int timeout = 2;
-   long flags;
+   unsigned long flags;
 
    /* If interrupts are enabled (which they are), then put the process to
     * sleep.  This process will be awakened by two events -- either the
@@ -200,9 +200,7 @@ static struct i2c_adapter iic_ite_ops = {
        .owner          = THIS_MODULE,
        .id             = I2C_HW_I_IIC,
        .algo_data      = &iic_ite_data,
-       .dev            = {
-               .name   = "ITE IIC adapter",
-       },
+       .name           = "ITE IIC adapter",
 };
 
 /* Called when the module is loaded.  This function starts the