Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97503
b: refs/heads/master
c: 5de4cd4
h: refs/heads/master
i:
  97501: 66f7369
  97499: fbad992
  97495: 1149ec9
  97487: f1fec00
  97471: b4ec51c
v: v3
  • Loading branch information
Mark Brown authored and Dmitry Torokhov committed May 27, 2008
1 parent 0e0c372 commit 234cea0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef9db4929a4d9559abf1812fd89cc3b09c56b49b
refs/heads/master: 5de4cd431db749bdca58ec88862462729f6159b2
22 changes: 11 additions & 11 deletions trunk/drivers/input/touchscreen/wm97xx-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,17 @@ static int wm97xx_probe(struct device *dev)
goto alloc_err;
}

/* set up physical characteristics */
wm->codec->phy_init(wm);

/* load gpio cache */
wm->gpio[0] = wm97xx_reg_read(wm, AC97_GPIO_CFG);
wm->gpio[1] = wm97xx_reg_read(wm, AC97_GPIO_POLARITY);
wm->gpio[2] = wm97xx_reg_read(wm, AC97_GPIO_STICKY);
wm->gpio[3] = wm97xx_reg_read(wm, AC97_GPIO_WAKEUP);
wm->gpio[4] = wm97xx_reg_read(wm, AC97_GPIO_STATUS);
wm->gpio[5] = wm97xx_reg_read(wm, AC97_MISC_AFE);

wm->input_dev = input_allocate_device();
if (wm->input_dev == NULL) {
ret = -ENOMEM;
Expand Down Expand Up @@ -635,17 +646,6 @@ static int wm97xx_probe(struct device *dev)
if (ret < 0)
goto dev_alloc_err;

/* set up physical characteristics */
wm->codec->phy_init(wm);

/* load gpio cache */
wm->gpio[0] = wm97xx_reg_read(wm, AC97_GPIO_CFG);
wm->gpio[1] = wm97xx_reg_read(wm, AC97_GPIO_POLARITY);
wm->gpio[2] = wm97xx_reg_read(wm, AC97_GPIO_STICKY);
wm->gpio[3] = wm97xx_reg_read(wm, AC97_GPIO_WAKEUP);
wm->gpio[4] = wm97xx_reg_read(wm, AC97_GPIO_STATUS);
wm->gpio[5] = wm97xx_reg_read(wm, AC97_MISC_AFE);

/* register our battery device */
wm->battery_dev = platform_device_alloc("wm97xx-battery", -1);
if (!wm->battery_dev) {
Expand Down

0 comments on commit 234cea0

Please sign in to comment.