]> Pileus Git - ~andy/linux/blobdiff - drivers/mfd/ucb1x00-core.c
MFD: ucb1x00-core: add owner and dev initializers to gpio structure
[~andy/linux] / drivers / mfd / ucb1x00-core.c
index 74d9fcf891d5c69fa99765c50f2150c58ceb7618..30ef726f4ba0c6af96a849c4abdd241e13ce387e 100644 (file)
@@ -579,6 +579,8 @@ static int ucb1x00_probe(struct mcp *mcp)
        ucb->gpio.base = -1;
        if (pdata && pdata->gpio_base) {
                ucb->gpio.label = dev_name(&ucb->dev);
+               ucb->gpio.dev = &ucb->dev;
+               ucb->gpio.owner = THIS_MODULE;
                ucb->gpio.base = pdata->gpio_base;
                ucb->gpio.ngpio = 10;
                ucb->gpio.set = ucb1x00_gpio_set;