diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-09 22:52:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-09 22:52:01 -0500 |
commit | fa395aaec823b9d1a5800913a6b5d0e6d1c5ced2 (patch) | |
tree | d599abe9f4f48f1737da50fa9a48dadfd08100e3 /drivers/mfd | |
parent | 3e7468313758913c5e4d372f35b271b96bad1298 (diff) | |
parent | 1f26978afd123deb22dd3c7dc75771a02f6e03f6 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (51 commits)
Input: appletouch - give up maintainership
Input: dm355evm_kbd - switch to using sparse keymap library
Input: wistron_btns - switch to using sparse keymap library
Input: add generic support for sparse keymaps
Input: fix memory leak in force feedback core
Input: wistron - remove identification strings from DMI table
Input: psmouse - remove identification strings from DMI tables
Input: atkbd - remove identification strings from DMI table
Input: i8042 - remove identification strings from DMI tables
DMI: allow omitting ident strings in DMI tables
Input: psmouse - do not carry DMI data around
Input: matrix-keypad - switch to using dev_pm_ops
Input: keyboard - fix lack of locking when traversing handler->h_list
Input: gpio_keys - scan gpio state at probe and resume time
Input: keyboard - add locking around event handling
Input: usbtouchscreen - add support for ET&T TC5UH touchscreen controller
Input: xpad - add two new Xbox 360 devices
Input: polled device - do not start polling if interval is zero
Input: polled device - schedule first poll immediately
Input: add S3C24XX touchscreen driver
...
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/ucb1400_core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mfd/ucb1400_core.c b/drivers/mfd/ucb1400_core.c index fa294b6d600a..85fd9421be94 100644 --- a/drivers/mfd/ucb1400_core.c +++ b/drivers/mfd/ucb1400_core.c | |||
@@ -51,6 +51,7 @@ static int ucb1400_core_probe(struct device *dev) | |||
51 | struct ucb1400_ts ucb_ts; | 51 | struct ucb1400_ts ucb_ts; |
52 | struct ucb1400_gpio ucb_gpio; | 52 | struct ucb1400_gpio ucb_gpio; |
53 | struct snd_ac97 *ac97; | 53 | struct snd_ac97 *ac97; |
54 | struct ucb1400_pdata *pdata = dev->platform_data; | ||
54 | 55 | ||
55 | memset(&ucb_ts, 0, sizeof(ucb_ts)); | 56 | memset(&ucb_ts, 0, sizeof(ucb_ts)); |
56 | memset(&ucb_gpio, 0, sizeof(ucb_gpio)); | 57 | memset(&ucb_gpio, 0, sizeof(ucb_gpio)); |
@@ -88,6 +89,12 @@ static int ucb1400_core_probe(struct device *dev) | |||
88 | 89 | ||
89 | /* TOUCHSCREEN */ | 90 | /* TOUCHSCREEN */ |
90 | ucb_ts.ac97 = ac97; | 91 | ucb_ts.ac97 = ac97; |
92 | |||
93 | if (pdata != NULL && pdata->irq >= 0) | ||
94 | ucb_ts.irq = pdata->irq; | ||
95 | else | ||
96 | ucb_ts.irq = -1; | ||
97 | |||
91 | ucb->ucb1400_ts = platform_device_alloc("ucb1400_ts", -1); | 98 | ucb->ucb1400_ts = platform_device_alloc("ucb1400_ts", -1); |
92 | if (!ucb->ucb1400_ts) { | 99 | if (!ucb->ucb1400_ts) { |
93 | err = -ENOMEM; | 100 | err = -ENOMEM; |