Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288908
b: refs/heads/master
c: aed92bb
h: refs/heads/master
v: v3
  • Loading branch information
Julian Andres Klode authored and Greg Kroah-Hartman committed Jan 31, 2012
1 parent cf7f952 commit 5a2d460
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: d3f862aec400dd831a4bdbea107fd85419bddab1
refs/heads/master: aed92bbcf4ce760c4d7848013a0db3bdd4ae9492
13 changes: 6 additions & 7 deletions trunk/drivers/staging/nvec/nvec.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,11 +784,6 @@ static int __devinit tegra_nvec_probe(struct platform_device *pdev)
nvec->i2c_clk = i2c_clk;
nvec->rx = &nvec->msg_pool[0];

/* Set the gpio to low when we've got something to say */
err = gpio_request(nvec->gpio, "nvec gpio");
if (err < 0)
dev_err(nvec->dev, "couldn't request gpio\n");

ATOMIC_INIT_NOTIFIER_HEAD(&nvec->notifier_list);

init_completion(&nvec->sync_write);
Expand All @@ -802,6 +797,12 @@ static int __devinit tegra_nvec_probe(struct platform_device *pdev)
INIT_WORK(&nvec->tx_work, nvec_request_master);
nvec->wq = alloc_workqueue("nvec", WQ_NON_REENTRANT, 2);

err = gpio_request_one(nvec->gpio, GPIOF_OUT_INIT_HIGH, "nvec gpio");
if (err < 0) {
dev_err(nvec->dev, "couldn't request gpio\n");
goto failed;
}

err = request_irq(nvec->irq, nvec_interrupt, 0, "nvec", nvec);
if (err) {
dev_err(nvec->dev, "couldn't request irq\n");
Expand All @@ -813,8 +814,6 @@ static int __devinit tegra_nvec_probe(struct platform_device *pdev)

clk_enable(i2c_clk);

gpio_direction_output(nvec->gpio, 1);
gpio_set_value(nvec->gpio, 1);

/* enable event reporting */
nvec_write_async(nvec, EC_ENABLE_EVENT_REPORTING,
Expand Down

0 comments on commit 5a2d460

Please sign in to comment.