diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2016-01-20 12:48:25 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-01-20 12:48:25 -0500 |
commit | 9662e32c810ad3e6ce49832d5f585a54f8fbdbdb (patch) | |
tree | fd9fd3f8cd44e231b8dc71c2e360eb19963972d5 /drivers/pci/hotplug/ibmphp_core.c | |
parent | 904f664b585cc9f3dc134a8c0dd08e9bce6c10bc (diff) | |
parent | bd7900825a3db4c4916fafb400c1f669120039d2 (diff) |
Merge branch 'pci/trivial' into next
* pci/trivial:
PCI: shpchp: Constify hpc_ops structure
PCI: Use kobj_to_dev() instead of open-coding it
PCI: Use to_pci_dev() instead of open-coding it
PCI: Fix all whitespace issues
PCI/MSI: Fix typos in <linux/msi.h>
Diffstat (limited to 'drivers/pci/hotplug/ibmphp_core.c')
-rw-r--r-- | drivers/pci/hotplug/ibmphp_core.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/pci/hotplug/ibmphp_core.c b/drivers/pci/hotplug/ibmphp_core.c index 49adf2278c14..5efd01d84498 100644 --- a/drivers/pci/hotplug/ibmphp_core.c +++ b/drivers/pci/hotplug/ibmphp_core.c | |||
@@ -39,11 +39,11 @@ | |||
39 | #include <asm/io_apic.h> | 39 | #include <asm/io_apic.h> |
40 | #include "ibmphp.h" | 40 | #include "ibmphp.h" |
41 | 41 | ||
42 | #define attn_on(sl) ibmphp_hpc_writeslot (sl, HPC_SLOT_ATTNON) | 42 | #define attn_on(sl) ibmphp_hpc_writeslot(sl, HPC_SLOT_ATTNON) |
43 | #define attn_off(sl) ibmphp_hpc_writeslot (sl, HPC_SLOT_ATTNOFF) | 43 | #define attn_off(sl) ibmphp_hpc_writeslot(sl, HPC_SLOT_ATTNOFF) |
44 | #define attn_LED_blink(sl) ibmphp_hpc_writeslot (sl, HPC_SLOT_BLINKLED) | 44 | #define attn_LED_blink(sl) ibmphp_hpc_writeslot(sl, HPC_SLOT_BLINKLED) |
45 | #define get_ctrl_revision(sl, rev) ibmphp_hpc_readslot (sl, READ_REVLEVEL, rev) | 45 | #define get_ctrl_revision(sl, rev) ibmphp_hpc_readslot(sl, READ_REVLEVEL, rev) |
46 | #define get_hpc_options(sl, opt) ibmphp_hpc_readslot (sl, READ_HPCOPTIONS, opt) | 46 | #define get_hpc_options(sl, opt) ibmphp_hpc_readslot(sl, READ_HPCOPTIONS, opt) |
47 | 47 | ||
48 | #define DRIVER_VERSION "0.6" | 48 | #define DRIVER_VERSION "0.6" |
49 | #define DRIVER_DESC "IBM Hot Plug PCI Controller Driver" | 49 | #define DRIVER_DESC "IBM Hot Plug PCI Controller Driver" |
@@ -52,9 +52,9 @@ int ibmphp_debug; | |||
52 | 52 | ||
53 | static bool debug; | 53 | static bool debug; |
54 | module_param(debug, bool, S_IRUGO | S_IWUSR); | 54 | module_param(debug, bool, S_IRUGO | S_IWUSR); |
55 | MODULE_PARM_DESC (debug, "Debugging mode enabled or not"); | 55 | MODULE_PARM_DESC(debug, "Debugging mode enabled or not"); |
56 | MODULE_LICENSE ("GPL"); | 56 | MODULE_LICENSE("GPL"); |
57 | MODULE_DESCRIPTION (DRIVER_DESC); | 57 | MODULE_DESCRIPTION(DRIVER_DESC); |
58 | 58 | ||
59 | struct pci_bus *ibmphp_pci_bus; | 59 | struct pci_bus *ibmphp_pci_bus; |
60 | static int max_slots; | 60 | static int max_slots; |
@@ -113,7 +113,7 @@ static inline int slot_update(struct slot **sl) | |||
113 | return rc; | 113 | return rc; |
114 | } | 114 | } |
115 | 115 | ||
116 | static int __init get_max_slots (void) | 116 | static int __init get_max_slots(void) |
117 | { | 117 | { |
118 | struct slot *slot_cur; | 118 | struct slot *slot_cur; |
119 | u8 slot_count = 0; | 119 | u8 slot_count = 0; |
@@ -457,7 +457,7 @@ static int get_max_adapter_speed_1(struct hotplug_slot *hotplug_slot, u8 *value, | |||
457 | *value = SLOT_SPEED(myslot.ext_status); | 457 | *value = SLOT_SPEED(myslot.ext_status); |
458 | } else | 458 | } else |
459 | *value = MAX_ADAPTER_NONE; | 459 | *value = MAX_ADAPTER_NONE; |
460 | } | 460 | } |
461 | } | 461 | } |
462 | 462 | ||
463 | if (flag) | 463 | if (flag) |
@@ -612,11 +612,11 @@ int ibmphp_update_slot_info(struct slot *slot_cur) | |||
612 | info->attention_status = SLOT_ATTN(slot_cur->status, | 612 | info->attention_status = SLOT_ATTN(slot_cur->status, |
613 | slot_cur->ext_status); | 613 | slot_cur->ext_status); |
614 | info->latch_status = SLOT_LATCH(slot_cur->status); | 614 | info->latch_status = SLOT_LATCH(slot_cur->status); |
615 | if (!SLOT_PRESENT(slot_cur->status)) { | 615 | if (!SLOT_PRESENT(slot_cur->status)) { |
616 | info->adapter_status = 0; | 616 | info->adapter_status = 0; |
617 | /* info->max_adapter_speed_status = MAX_ADAPTER_NONE; */ | 617 | /* info->max_adapter_speed_status = MAX_ADAPTER_NONE; */ |
618 | } else { | 618 | } else { |
619 | info->adapter_status = 1; | 619 | info->adapter_status = 1; |
620 | /* get_max_adapter_speed_1(slot_cur->hotplug_slot, | 620 | /* get_max_adapter_speed_1(slot_cur->hotplug_slot, |
621 | &info->max_adapter_speed_status, 0); */ | 621 | &info->max_adapter_speed_status, 0); */ |
622 | } | 622 | } |
@@ -854,7 +854,7 @@ static int set_bus(struct slot *slot_cur) | |||
854 | int retval; | 854 | int retval; |
855 | static struct pci_device_id ciobx[] = { | 855 | static struct pci_device_id ciobx[] = { |
856 | { PCI_DEVICE(PCI_VENDOR_ID_SERVERWORKS, 0x0101) }, | 856 | { PCI_DEVICE(PCI_VENDOR_ID_SERVERWORKS, 0x0101) }, |
857 | { }, | 857 | { }, |
858 | }; | 858 | }; |
859 | 859 | ||
860 | debug("%s - entry slot # %d\n", __func__, slot_cur->number); | 860 | debug("%s - entry slot # %d\n", __func__, slot_cur->number); |
@@ -1170,7 +1170,7 @@ error_power: | |||
1170 | * HOT REMOVING ADAPTER CARD * | 1170 | * HOT REMOVING ADAPTER CARD * |
1171 | * INPUT: POINTER TO THE HOTPLUG SLOT STRUCTURE * | 1171 | * INPUT: POINTER TO THE HOTPLUG SLOT STRUCTURE * |
1172 | * OUTPUT: SUCCESS 0 ; FAILURE: UNCONFIGURE , VALIDATE * | 1172 | * OUTPUT: SUCCESS 0 ; FAILURE: UNCONFIGURE , VALIDATE * |
1173 | DISABLE POWER , * | 1173 | * DISABLE POWER , * |
1174 | **************************************************************/ | 1174 | **************************************************************/ |
1175 | static int ibmphp_disable_slot(struct hotplug_slot *hotplug_slot) | 1175 | static int ibmphp_disable_slot(struct hotplug_slot *hotplug_slot) |
1176 | { | 1176 | { |