Skip to content

Commit

Permalink
MFD: ucb1x00-core: add owner and dev initializers to gpio structure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King committed Feb 18, 2012
1 parent f5ae587 commit 7655b2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mfd/ucb1x00-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7655b2a

Please sign in to comment.