gpiolib: i2c/spi drivers: handle rmmod better
[cascardo/linux.git] / drivers / gpio / pca953x.c
index 6e72fd3..e0e0af5 100644 (file)
@@ -189,6 +189,7 @@ static void pca953x_setup_gpio(struct pca953x_chip *chip, int gpios)
        gc->base = chip->gpio_start;
        gc->ngpio = gpios;
        gc->label = chip->client->name;
+       gc->owner = THIS_MODULE;
 }
 
 static int __devinit pca953x_probe(struct i2c_client *client)