From: Ming Lei Date: Wed, 16 Jul 2008 14:54:30 +0000 (+0800) Subject: PCI: remove unnecessary volatile in PCIe hotplug struct controller X-Git-Tag: v2.6.27-rc1~1046^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9fce1bc956c21dfe0f46be028f18c4d5057f2bd7;p=linux-2.6-omap-h63xx.git PCI: remove unnecessary volatile in PCIe hotplug struct controller 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 Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h index d17233ae06f..e3a1e7e7dba 100644 --- a/drivers/pci/hotplug/pciehp.h +++ b/drivers/pci/hotplug/pciehp.h @@ -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; };