diff options
-rw-r--r-- | drivers/pci/hotplug/shpchp.h | 4 | ||||
-rw-r--r-- | drivers/pci/hotplug/shpchp_hpc.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/shpchp.h b/drivers/pci/hotplug/shpchp.h index 821227f415e4..4da8fc601467 100644 --- a/drivers/pci/hotplug/shpchp.h +++ b/drivers/pci/hotplug/shpchp.h | |||
@@ -84,7 +84,7 @@ struct slot { | |||
84 | u8 presence_save; | 84 | u8 presence_save; |
85 | u8 pwr_save; | 85 | u8 pwr_save; |
86 | struct controller *ctrl; | 86 | struct controller *ctrl; |
87 | struct hpc_ops *hpc_ops; | 87 | const struct hpc_ops *hpc_ops; |
88 | struct hotplug_slot *hotplug_slot; | 88 | struct hotplug_slot *hotplug_slot; |
89 | struct list_head slot_list; | 89 | struct list_head slot_list; |
90 | struct delayed_work work; /* work for button event */ | 90 | struct delayed_work work; /* work for button event */ |
@@ -106,7 +106,7 @@ struct controller { | |||
106 | int slot_num_inc; /* 1 or -1 */ | 106 | int slot_num_inc; /* 1 or -1 */ |
107 | struct pci_dev *pci_dev; | 107 | struct pci_dev *pci_dev; |
108 | struct list_head slot_list; | 108 | struct list_head slot_list; |
109 | struct hpc_ops *hpc_ops; | 109 | const struct hpc_ops *hpc_ops; |
110 | wait_queue_head_t queue; /* sleep & wake process */ | 110 | wait_queue_head_t queue; /* sleep & wake process */ |
111 | u8 slot_device_offset; | 111 | u8 slot_device_offset; |
112 | u32 pcix_misc2_reg; /* for amd pogo errata */ | 112 | u32 pcix_misc2_reg; /* for amd pogo errata */ |
diff --git a/drivers/pci/hotplug/shpchp_hpc.c b/drivers/pci/hotplug/shpchp_hpc.c index e03341c95745..de0ea474fb73 100644 --- a/drivers/pci/hotplug/shpchp_hpc.c +++ b/drivers/pci/hotplug/shpchp_hpc.c | |||
@@ -910,7 +910,7 @@ static int shpc_get_max_bus_speed(struct controller *ctrl) | |||
910 | return retval; | 910 | return retval; |
911 | } | 911 | } |
912 | 912 | ||
913 | static struct hpc_ops shpchp_hpc_ops = { | 913 | static const struct hpc_ops shpchp_hpc_ops = { |
914 | .power_on_slot = hpc_power_on_slot, | 914 | .power_on_slot = hpc_power_on_slot, |
915 | .slot_enable = hpc_slot_enable, | 915 | .slot_enable = hpc_slot_enable, |
916 | .slot_disable = hpc_slot_disable, | 916 | .slot_disable = hpc_slot_disable, |