Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324335
b: refs/heads/master
c: daed6b5
h: refs/heads/master
i:
  324333: 390f3fb
  324331: dacb62f
  324327: d139b4b
  324319: 6190633
v: v3
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Sep 5, 2012
1 parent 79884a5 commit 8d5e772
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 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: efda0ad4aa92439d9244d77a13339e23df5e1dc1
refs/heads/master: daed6b5e78c11f34f08cc2bc1640b7f248884cee
17 changes: 8 additions & 9 deletions trunk/drivers/misc/mei/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@
#include <linux/mei.h>
#include "interface.h"

/* The device pointer */
/* Currently this driver works as long as there is only a single AMT device. */
struct pci_dev *mei_device;
/* AMT device is a singleton on the platform */
static struct pci_dev *mei_pdev;

/* mei_pci_tbl - PCI Device ID Table */
static DEFINE_PCI_DEVICE_TABLE(mei_pci_tbl) = {
Expand Down Expand Up @@ -218,10 +217,10 @@ static int mei_open(struct inode *inode, struct file *file)
int err;

err = -ENODEV;
if (!mei_device)
if (!mei_pdev)
goto out;

dev = pci_get_drvdata(mei_device);
dev = pci_get_drvdata(mei_pdev);
if (!dev)
goto out;

Expand Down Expand Up @@ -945,7 +944,7 @@ static int __devinit mei_probe(struct pci_dev *pdev,
goto end;
}

if (mei_device) {
if (mei_pdev) {
err = -EEXIST;
goto end;
}
Expand Down Expand Up @@ -1006,7 +1005,7 @@ static int __devinit mei_probe(struct pci_dev *pdev,
if (err)
goto release_irq;

mei_device = pdev;
mei_pdev = pdev;
pci_set_drvdata(pdev, dev);


Expand Down Expand Up @@ -1051,7 +1050,7 @@ static void __devexit mei_remove(struct pci_dev *pdev)
{
struct mei_device *dev;

if (mei_device != pdev)
if (mei_pdev != pdev)
return;

dev = pci_get_drvdata(pdev);
Expand All @@ -1064,7 +1063,7 @@ static void __devexit mei_remove(struct pci_dev *pdev)

mei_wd_stop(dev);

mei_device = NULL;
mei_pdev = NULL;

if (dev->iamthif_cl.state == MEI_FILE_CONNECTED) {
dev->iamthif_cl.state = MEI_FILE_DISCONNECTING;
Expand Down
5 changes: 0 additions & 5 deletions trunk/drivers/misc/mei/mei_dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@

#define MEI_RD_MSG_BUF_SIZE (128 * sizeof(u32))

/*
* MEI PCI Device object
*/
extern struct pci_dev *mei_device;


/*
* AMTHI Client UUID
Expand Down

0 comments on commit 8d5e772

Please sign in to comment.