Skip to content

Commit

Permalink
witherspoon: Rename shared slot fixup function
Browse files Browse the repository at this point in the history
Rename and set it as a pre_pci_fixup platform function. The indirect
call doesn't make a whole of of sense IMO.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
oohal authored and stewartsmith committed Sep 27, 2018
1 parent 30ffd4c commit 1355c31
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions platforms/astbmc/witherspoon.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static void phb4_activate_shared_slot_witherspoon(struct proc_chip *chip)
prlog(PR_INFO, "Shared PCI slot activated\n");
}

static void phb4_pre_pci_fixup_witherspoon(void)
static void witherspoon_shared_slot_fixup(void)
{
struct pci_slot *slot0, *slot1;
struct proc_chip *chip0, *chip1;
Expand Down Expand Up @@ -204,11 +204,6 @@ static void phb4_pre_pci_fixup_witherspoon(void)
}
}

static void witherspoon_pre_pci_fixup(void)
{
phb4_pre_pci_fixup_witherspoon();
}

static void set_link_details(struct npu2 *npu, uint32_t link_index,
uint32_t brick_index, enum npu2_dev_type type)
{
Expand Down Expand Up @@ -366,7 +361,7 @@ DECLARE_PLATFORM(witherspoon) = {
.name = "Witherspoon",
.probe = witherspoon_probe,
.init = astbmc_init,
.pre_pci_fixup = witherspoon_pre_pci_fixup,
.pre_pci_fixup = witherspoon_shared_slot_fixup,
.start_preload_resource = flash_start_preload_resource,
.resource_loaded = flash_resource_loaded,
.bmc = &astbmc_openbmc,
Expand Down

0 comments on commit 1355c31

Please sign in to comment.