[PATCH] PCI: 'is_enabled' flag should be set/cleared when the device is actually...
authorKenji Kaneshige <kaneshige.kenji@soft.fujitsu.com>
Fri, 8 Apr 2005 05:53:31 +0000 (14:53 +0900)
committerGreg KH <gregkh@suse.de>
Wed, 4 May 2005 06:45:13 +0000 (23:45 -0700)
commitceb43744cd48a20212e2179e0c7ff2f450a3c97e
treef9554643bc9d70fe761840a603adce393c0e9f08
parent8800cea62025a5209d110c5fa5990429239d6eee
[PATCH] PCI: 'is_enabled' flag should be set/cleared when the device is actually enabled/disabled

I think 'is_enabled' flag in pci_dev structure should be set/cleared
when the device actually enabled/disabled. Especially about
pci_enable_device(), it can be failed. By this change, we will also
get the possibility of refering 'is_enabled' flag from the functions
called through pci_enable_device()/pci_disable_device().

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci.c