]> err.no Git - linux-2.6/commitdiff
PCI: remove unnecessary volatile in PCIe hotplug struct controller
authorMing Lei <tom.leiming@gmail.com>
Wed, 16 Jul 2008 14:54:30 +0000 (22:54 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 16 Jul 2008 15:46:43 +0000 (08:46 -0700)
Proper memory barriers have been added to order accesses
to ->cmd_busy, so volatile declaration for cmd_busy can
be removed.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/hotplug/pciehp.h

index d17233ae06f5ed2afa91a0f301ea952940379c44..e3a1e7e7dba246b6bc35a16dbd8a0a3f00ee885e 100644 (file)
@@ -97,7 +97,7 @@ struct controller {
        u32 slot_cap;
        u8 cap_base;
        struct timer_list poll_timer;
-       volatile int cmd_busy;
+       int cmd_busy;
        unsigned int no_cmd_complete:1;
 };