diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-21 09:47:00 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-18 18:15:33 -0500 |
commit | 7655b2ac9ed3206fb916357b8b1065f08324507d (patch) | |
tree | bc5646a47ed00f23d73365f56749fdab7677426a /drivers | |
parent | f5ae587f5d258bda9c24bb8387315eb2ebedeee9 (diff) |
MFD: ucb1x00-core: add owner and dev initializers to gpio structure
Register the gpio device with proper .owner and .dev elements set
appropraitely.
Acked-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/ucb1x00-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/ucb1x00-core.c b/drivers/mfd/ucb1x00-core.c index 74d9fcf891d5..30ef726f4ba0 100644 --- a/drivers/mfd/ucb1x00-core.c +++ b/drivers/mfd/ucb1x00-core.c | |||
@@ -579,6 +579,8 @@ static int ucb1x00_probe(struct mcp *mcp) | |||
579 | ucb->gpio.base = -1; | 579 | ucb->gpio.base = -1; |
580 | if (pdata && pdata->gpio_base) { | 580 | if (pdata && pdata->gpio_base) { |
581 | ucb->gpio.label = dev_name(&ucb->dev); | 581 | ucb->gpio.label = dev_name(&ucb->dev); |
582 | ucb->gpio.dev = &ucb->dev; | ||
583 | ucb->gpio.owner = THIS_MODULE; | ||
582 | ucb->gpio.base = pdata->gpio_base; | 584 | ucb->gpio.base = pdata->gpio_base; |
583 | ucb->gpio.ngpio = 10; | 585 | ucb->gpio.ngpio = 10; |
584 | ucb->gpio.set = ucb1x00_gpio_set; | 586 | ucb->gpio.set = ucb1x00_gpio_set; |