Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324722
b: refs/heads/master
c: eb1e40a
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent c74591e commit fb28ceb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 71d64ef2fa90aaf5425842b9bfef9e4b9e6ad0ff
refs/heads/master: eb1e40a4dd0fb4095900e085fdd3ed259acbee29
10 changes: 4 additions & 6 deletions trunk/drivers/staging/nvec/nvec.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ int nvec_write_async(struct nvec_chip *nvec, const unsigned char *data,
list_add_tail(&msg->node, &nvec->tx_data);
spin_unlock_irqrestore(&nvec->tx_lock, flags);

queue_work(nvec->wq, &nvec->tx_work);
queue_work(system_nrt_wq, &nvec->tx_work);

return 0;
}
Expand Down Expand Up @@ -471,7 +471,7 @@ static void nvec_rx_completed(struct nvec_chip *nvec)
if (!nvec_msg_is_event(nvec->rx))
complete(&nvec->ec_transfer);

queue_work(nvec->wq, &nvec->rx_work);
queue_work(system_nrt_wq, &nvec->rx_work);
}

/**
Expand Down Expand Up @@ -794,21 +794,18 @@ static int __devinit tegra_nvec_probe(struct platform_device *pdev)
INIT_LIST_HEAD(&nvec->tx_data);
INIT_WORK(&nvec->rx_work, nvec_dispatch);
INIT_WORK(&nvec->tx_work, nvec_request_master);
nvec->wq = alloc_workqueue("nvec", WQ_NON_REENTRANT, 2);

err = devm_gpio_request_one(&pdev->dev, nvec->gpio, GPIOF_OUT_INIT_HIGH,
"nvec gpio");
if (err < 0) {
dev_err(nvec->dev, "couldn't request gpio\n");
destroy_workqueue(nvec->wq);
return -ENODEV;
}

err = devm_request_irq(&pdev->dev, nvec->irq, nvec_interrupt, 0,
"nvec", nvec);
if (err) {
dev_err(nvec->dev, "couldn't request irq\n");
destroy_workqueue(nvec->wq);
return -ENODEV;
}
disable_irq(nvec->irq);
Expand Down Expand Up @@ -862,7 +859,8 @@ static int __devexit tegra_nvec_remove(struct platform_device *pdev)

nvec_write_async(nvec, EC_DISABLE_EVENT_REPORTING, 3);
mfd_remove_devices(nvec->dev);
destroy_workqueue(nvec->wq);
cancel_work_sync(&nvec->rx_work);
cancel_work_sync(&nvec->tx_work);

return 0;
}
Expand Down

0 comments on commit fb28ceb

Please sign in to comment.