浏览代码

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 <tom.leiming@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Ming Lei 17 年之前
父节点
当前提交
9fce1bc956
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/pci/hotplug/pciehp.h

+ 1 - 1
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;
 };