Staging: sep: Fix crash if a device is not found
authorAlan Cox <alan@linux.intel.com>
Wed, 24 Nov 2010 19:39:20 +0000 (19:39 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 29 Nov 2010 19:17:29 +0000 (11:17 -0800)
commitda3f825bc71b420e129b6344be0e3e863ebf8a42
tree3fc101ecf2404e63eb0b8017d7141b690d6f08d4
parent6f89be93ce6e718a51215336845c70ada06627ba
Staging: sep: Fix crash if a device is not found

The existing code works mostly by luck. The PCI probe is done by the
register and completes before the register returns thus allowing the other
init code to run in time. Without a SEP or if unlucky this doesn't occur
and you get an OOPS which for some reason causes grumpiness.

As the season of good b^Hcheer is supposed to be approaching we should
probably fix it.

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