Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264855
b: refs/heads/master
c: 4e0b72f
h: refs/heads/master
i:
  264853: 9e4e5eb
  264851: a097538
  264847: c10889c
v: v3
  • Loading branch information
Hans J. Koch authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent b5cbbdb commit 71483e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 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: a406f75840e15afbabd98cb64ae36b51424a8033
refs/heads/master: 4e0b72fd7444e07e2870d193ce8fb6b0b00f5a89
5 changes: 0 additions & 5 deletions trunk/drivers/uio/uio_pci_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/uio_driver.h>
#include <linux/spinlock.h>

#define DRIVER_VERSION "0.01.0"
#define DRIVER_AUTHOR "Michael S. Tsirkin <mst@redhat.com>"
Expand All @@ -33,7 +32,6 @@
struct uio_pci_generic_dev {
struct uio_info info;
struct pci_dev *pdev;
spinlock_t lock; /* guards command register accesses */
};

static inline struct uio_pci_generic_dev *
Expand All @@ -57,7 +55,6 @@ static irqreturn_t irqhandler(int irq, struct uio_info *info)
BUILD_BUG_ON(PCI_COMMAND % 4);
BUILD_BUG_ON(PCI_COMMAND + 2 != PCI_STATUS);

spin_lock_irq(&gdev->lock);
pci_block_user_cfg_access(pdev);

/* Read both command and status registers in a single 32-bit operation.
Expand All @@ -83,7 +80,6 @@ static irqreturn_t irqhandler(int irq, struct uio_info *info)
done:

pci_unblock_user_cfg_access(pdev);
spin_unlock_irq(&gdev->lock);
return ret;
}

Expand Down Expand Up @@ -158,7 +154,6 @@ static int __devinit probe(struct pci_dev *pdev,
gdev->info.irq_flags = IRQF_SHARED;
gdev->info.handler = irqhandler;
gdev->pdev = pdev;
spin_lock_init(&gdev->lock);

if (uio_register_device(&pdev->dev, &gdev->info))
goto err_register;
Expand Down

0 comments on commit 71483e6

Please sign in to comment.