staging: cx25821: call disable_pci_device() if pci_probe() failed
commitc37c6d2196fc716abac6531c4cf08ad2874d52d8
authorKulikov Vasiliy <segooon@gmail.com>
Fri, 6 Aug 2010 19:52:57 +0000 (6 23:52 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 31 Aug 2010 21:48:10 +0000 (31 14:48 -0700)
treee37b114b56ded85dd4f8c51bef0f6f7f427c1c75
parent918e3592b9ea865ce29bda06a7200eba80d8d5f8
staging: cx25821: call disable_pci_device() if pci_probe() failed

Driver should call disable_pci_device() if it returns from pci_probe()
with error. Also it must not be called if pci_request_region() fails as
it means that somebody uses device resources and rules the device.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/cx25821/cx25821-core.c