Staging: sep: Use filp->private_data to create proper device instances
authorAlan Cox <alan@linux.intel.com>
Fri, 7 Aug 2009 18:24:36 +0000 (19:24 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:14 +0000 (12:02 -0700)
commitca605bb68ccd1216871659371497f1e6a2543dc4
treecb835768f11810da9af6a3b2bf4475895d2b33e9
parent6343cefdc8174f2d00abf8201ecd17d354e5ddf7
Staging: sep: Use filp->private_data to create proper device instances

Move from using a sep_dev global. The workqueue still uses it and we use the
pointer in order to know if a device was found.

This requires some restructuring as the pci probe and the init module logic
are all rather messed up and only worked by luck.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/sep/sep_driver.c