浏览代码

PCI: pciehp: make cmd_busy flag one bit

The cmd_busy field in struct controller takes only two values 0 or
1. So it should be one bit.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Kenji Kaneshige 16 年之前
父节点
当前提交
6a82e21823
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/pci/hotplug/pciehp.h

+ 1 - 1
drivers/pci/hotplug/pciehp.h

@@ -108,7 +108,7 @@ struct controller {
 	u32 slot_cap;
 	u32 slot_cap;
 	u8 cap_base;
 	u8 cap_base;
 	struct timer_list poll_timer;
 	struct timer_list poll_timer;
-	int cmd_busy;
+	unsigned int cmd_busy:1;
 	unsigned int no_cmd_complete:1;
 	unsigned int no_cmd_complete:1;
 	unsigned int link_active_reporting:1;
 	unsigned int link_active_reporting:1;
 	unsigned int notification_enabled:1;
 	unsigned int notification_enabled:1;