diff options
author | Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> | 2009-06-15 22:02:02 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-06-16 17:30:12 -0400 |
commit | a6c0d5c6ebb3d988b1f18a1612b5188f3f555637 (patch) | |
tree | a2053da4e1db2604b28d41b17e9315a17889eb02 /drivers/pci/hotplug | |
parent | c825bc94c8c1908750ab20413eb639c6be029e2d (diff) |
PCI hotplug: remove redundant .owner initializations
The "owner" field in struct hotplug_slot_ops is initialized by PCI
hotplug core. So each hotplug controller driver doesn't need to
initialize it.
Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Reviewed-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_core.c | 1 | ||||
-rw-r--r-- | drivers/pci/hotplug/cpci_hotplug_core.c | 1 | ||||
-rw-r--r-- | drivers/pci/hotplug/cpqphp_core.c | 1 | ||||
-rw-r--r-- | drivers/pci/hotplug/ibmphp_core.c | 1 | ||||
-rw-r--r-- | drivers/pci/hotplug/pciehp_core.c | 1 | ||||
-rw-r--r-- | drivers/pci/hotplug/pcihp_skeleton.c | 1 | ||||
-rw-r--r-- | drivers/pci/hotplug/rpaphp_core.c | 1 | ||||
-rw-r--r-- | drivers/pci/hotplug/sgi_hotplug.c | 1 | ||||
-rw-r--r-- | drivers/pci/hotplug/shpchp_core.c | 1 |
9 files changed, 0 insertions, 9 deletions
diff --git a/drivers/pci/hotplug/acpiphp_core.c b/drivers/pci/hotplug/acpiphp_core.c index 43c10bd261b4..4dd7114964ac 100644 --- a/drivers/pci/hotplug/acpiphp_core.c +++ b/drivers/pci/hotplug/acpiphp_core.c | |||
@@ -77,7 +77,6 @@ static int get_latch_status (struct hotplug_slot *slot, u8 *value); | |||
77 | static int get_adapter_status (struct hotplug_slot *slot, u8 *value); | 77 | static int get_adapter_status (struct hotplug_slot *slot, u8 *value); |
78 | 78 | ||
79 | static struct hotplug_slot_ops acpi_hotplug_slot_ops = { | 79 | static struct hotplug_slot_ops acpi_hotplug_slot_ops = { |
80 | .owner = THIS_MODULE, | ||
81 | .enable_slot = enable_slot, | 80 | .enable_slot = enable_slot, |
82 | .disable_slot = disable_slot, | 81 | .disable_slot = disable_slot, |
83 | .set_attention_status = set_attention_status, | 82 | .set_attention_status = set_attention_status, |
diff --git a/drivers/pci/hotplug/cpci_hotplug_core.c b/drivers/pci/hotplug/cpci_hotplug_core.c index de94f4feef8c..a5b9f6ae507b 100644 --- a/drivers/pci/hotplug/cpci_hotplug_core.c +++ b/drivers/pci/hotplug/cpci_hotplug_core.c | |||
@@ -72,7 +72,6 @@ static int get_adapter_status(struct hotplug_slot *slot, u8 * value); | |||
72 | static int get_latch_status(struct hotplug_slot *slot, u8 * value); | 72 | static int get_latch_status(struct hotplug_slot *slot, u8 * value); |
73 | 73 | ||
74 | static struct hotplug_slot_ops cpci_hotplug_slot_ops = { | 74 | static struct hotplug_slot_ops cpci_hotplug_slot_ops = { |
75 | .owner = THIS_MODULE, | ||
76 | .enable_slot = enable_slot, | 75 | .enable_slot = enable_slot, |
77 | .disable_slot = disable_slot, | 76 | .disable_slot = disable_slot, |
78 | .set_attention_status = set_attention_status, | 77 | .set_attention_status = set_attention_status, |
diff --git a/drivers/pci/hotplug/cpqphp_core.c b/drivers/pci/hotplug/cpqphp_core.c index 7888b37c6c8e..075b4f4b6e0d 100644 --- a/drivers/pci/hotplug/cpqphp_core.c +++ b/drivers/pci/hotplug/cpqphp_core.c | |||
@@ -608,7 +608,6 @@ static int get_cur_bus_speed (struct hotplug_slot *hotplug_slot, enum pci_bus_sp | |||
608 | } | 608 | } |
609 | 609 | ||
610 | static struct hotplug_slot_ops cpqphp_hotplug_slot_ops = { | 610 | static struct hotplug_slot_ops cpqphp_hotplug_slot_ops = { |
611 | .owner = THIS_MODULE, | ||
612 | .set_attention_status = set_attention_status, | 611 | .set_attention_status = set_attention_status, |
613 | .enable_slot = process_SI, | 612 | .enable_slot = process_SI, |
614 | .disable_slot = process_SS, | 613 | .disable_slot = process_SS, |
diff --git a/drivers/pci/hotplug/ibmphp_core.c b/drivers/pci/hotplug/ibmphp_core.c index 29ccb8a6da8a..b3d5d47e6980 100644 --- a/drivers/pci/hotplug/ibmphp_core.c +++ b/drivers/pci/hotplug/ibmphp_core.c | |||
@@ -1316,7 +1316,6 @@ error: | |||
1316 | } | 1316 | } |
1317 | 1317 | ||
1318 | struct hotplug_slot_ops ibmphp_hotplug_slot_ops = { | 1318 | struct hotplug_slot_ops ibmphp_hotplug_slot_ops = { |
1319 | .owner = THIS_MODULE, | ||
1320 | .set_attention_status = set_attention_status, | 1319 | .set_attention_status = set_attention_status, |
1321 | .enable_slot = enable_slot, | 1320 | .enable_slot = enable_slot, |
1322 | .disable_slot = ibmphp_disable_slot, | 1321 | .disable_slot = ibmphp_disable_slot, |
diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c index eb183d1d0912..2317557fdee6 100644 --- a/drivers/pci/hotplug/pciehp_core.c +++ b/drivers/pci/hotplug/pciehp_core.c | |||
@@ -73,7 +73,6 @@ static int get_max_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *val | |||
73 | static int get_cur_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value); | 73 | static int get_cur_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value); |
74 | 74 | ||
75 | static struct hotplug_slot_ops pciehp_hotplug_slot_ops = { | 75 | static struct hotplug_slot_ops pciehp_hotplug_slot_ops = { |
76 | .owner = THIS_MODULE, | ||
77 | .set_attention_status = set_attention_status, | 76 | .set_attention_status = set_attention_status, |
78 | .enable_slot = enable_slot, | 77 | .enable_slot = enable_slot, |
79 | .disable_slot = disable_slot, | 78 | .disable_slot = disable_slot, |
diff --git a/drivers/pci/hotplug/pcihp_skeleton.c b/drivers/pci/hotplug/pcihp_skeleton.c index e3dd6cf9e89f..5175d9b26f0b 100644 --- a/drivers/pci/hotplug/pcihp_skeleton.c +++ b/drivers/pci/hotplug/pcihp_skeleton.c | |||
@@ -82,7 +82,6 @@ static int get_latch_status (struct hotplug_slot *slot, u8 *value); | |||
82 | static int get_adapter_status (struct hotplug_slot *slot, u8 *value); | 82 | static int get_adapter_status (struct hotplug_slot *slot, u8 *value); |
83 | 83 | ||
84 | static struct hotplug_slot_ops skel_hotplug_slot_ops = { | 84 | static struct hotplug_slot_ops skel_hotplug_slot_ops = { |
85 | .owner = THIS_MODULE, | ||
86 | .enable_slot = enable_slot, | 85 | .enable_slot = enable_slot, |
87 | .disable_slot = disable_slot, | 86 | .disable_slot = disable_slot, |
88 | .set_attention_status = set_attention_status, | 87 | .set_attention_status = set_attention_status, |
diff --git a/drivers/pci/hotplug/rpaphp_core.c b/drivers/pci/hotplug/rpaphp_core.c index 95d02a08fdc7..c159223389ec 100644 --- a/drivers/pci/hotplug/rpaphp_core.c +++ b/drivers/pci/hotplug/rpaphp_core.c | |||
@@ -423,7 +423,6 @@ static int disable_slot(struct hotplug_slot *hotplug_slot) | |||
423 | } | 423 | } |
424 | 424 | ||
425 | struct hotplug_slot_ops rpaphp_hotplug_slot_ops = { | 425 | struct hotplug_slot_ops rpaphp_hotplug_slot_ops = { |
426 | .owner = THIS_MODULE, | ||
427 | .enable_slot = enable_slot, | 426 | .enable_slot = enable_slot, |
428 | .disable_slot = disable_slot, | 427 | .disable_slot = disable_slot, |
429 | .set_attention_status = set_attention_status, | 428 | .set_attention_status = set_attention_status, |
diff --git a/drivers/pci/hotplug/sgi_hotplug.c b/drivers/pci/hotplug/sgi_hotplug.c index 3eee70928d45..25a48b9f625e 100644 --- a/drivers/pci/hotplug/sgi_hotplug.c +++ b/drivers/pci/hotplug/sgi_hotplug.c | |||
@@ -83,7 +83,6 @@ static int disable_slot(struct hotplug_slot *slot); | |||
83 | static inline int get_power_status(struct hotplug_slot *slot, u8 *value); | 83 | static inline int get_power_status(struct hotplug_slot *slot, u8 *value); |
84 | 84 | ||
85 | static struct hotplug_slot_ops sn_hotplug_slot_ops = { | 85 | static struct hotplug_slot_ops sn_hotplug_slot_ops = { |
86 | .owner = THIS_MODULE, | ||
87 | .enable_slot = enable_slot, | 86 | .enable_slot = enable_slot, |
88 | .disable_slot = disable_slot, | 87 | .disable_slot = disable_slot, |
89 | .get_power_status = get_power_status, | 88 | .get_power_status = get_power_status, |
diff --git a/drivers/pci/hotplug/shpchp_core.c b/drivers/pci/hotplug/shpchp_core.c index fe8d149c2293..8a520a3d0f59 100644 --- a/drivers/pci/hotplug/shpchp_core.c +++ b/drivers/pci/hotplug/shpchp_core.c | |||
@@ -69,7 +69,6 @@ static int get_max_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *val | |||
69 | static int get_cur_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value); | 69 | static int get_cur_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value); |
70 | 70 | ||
71 | static struct hotplug_slot_ops shpchp_hotplug_slot_ops = { | 71 | static struct hotplug_slot_ops shpchp_hotplug_slot_ops = { |
72 | .owner = THIS_MODULE, | ||
73 | .set_attention_status = set_attention_status, | 72 | .set_attention_status = set_attention_status, |
74 | .enable_slot = enable_slot, | 73 | .enable_slot = enable_slot, |
75 | .disable_slot = disable_slot, | 74 | .disable_slot = disable_slot, |