Skip to content

Commit

Permalink
Staging: sep: function shuffle
Browse files Browse the repository at this point in the history
Shuffle the functions into a more normal order. Don't however change any of
them.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 8f3aa57 commit a2171b6
Show file tree
Hide file tree
Showing 2 changed files with 189 additions and 193 deletions.
34 changes: 14 additions & 20 deletions drivers/staging/sep/sep_ext_with_pci_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,25 +170,6 @@ unsigned long jiffies_future;
private functions
--------------------------------*/

/*
function that is activated on the succesfull probe of the SEP device
*/
static int __devinit sep_probe(struct pci_dev *pdev, const struct pci_device_id *ent);

static struct pci_device_id sep_pci_id_tbl[] = {
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x080c)},
{0}
};

MODULE_DEVICE_TABLE(pci, sep_pci_id_tbl);

/* field for registering driver to PCI device */
static struct pci_driver sep_pci_driver = {
.name = "sep_sec_driver",
.id_table = sep_pci_id_tbl,
.probe = sep_probe
};

/*
This functions locks the area of the resisnd and cache sep code
*/
Expand Down Expand Up @@ -453,6 +434,20 @@ static int __devinit sep_probe(struct pci_dev *pdev, const struct pci_device_id
return error;
}

static struct pci_device_id sep_pci_id_tbl[] = {
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x080c)},
{0}
};

MODULE_DEVICE_TABLE(pci, sep_pci_id_tbl);

/* field for registering driver to PCI device */
static struct pci_driver sep_pci_driver = {
.name = "sep_sec_driver",
.id_table = sep_pci_id_tbl,
.probe = sep_probe
};

/*
this function registers th driver to
the device subsystem( either PCI, USB, etc)
Expand All @@ -463,4 +458,3 @@ int sep_register_driver_to_device(void)
}



Loading

0 comments on commit a2171b6

Please sign in to comment.