]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/gpio/pcf857x.c
i2c: Add support for device alias names
[linux-2.6-omap-h63xx.git] / drivers / gpio / pcf857x.c
index c6b3b53783843cfd21f542dab4b278ba320aebe5..8856870dd738d328221a972da4c7d406bc8b1630 100644 (file)
@@ -142,7 +142,8 @@ static void pcf857x_set16(struct gpio_chip *chip, unsigned offset, int value)
 
 /*-------------------------------------------------------------------------*/
 
-static int pcf857x_probe(struct i2c_client *client)
+static int pcf857x_probe(struct i2c_client *client,
+                        const struct i2c_device_id *id)
 {
        struct pcf857x_platform_data    *pdata;
        struct pcf857x                  *gpio;
@@ -159,6 +160,7 @@ static int pcf857x_probe(struct i2c_client *client)
 
        gpio->chip.base = pdata->gpio_base;
        gpio->chip.can_sleep = 1;
+       gpio->chip.owner = THIS_MODULE;
 
        /* NOTE:  the OnSemi jlc1562b is also largely compatible with
         * these parts, notably for output.  It has a low-resolution