aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2018-08-23 13:47:32 +1000
committerStewart Smith <stewart@linux.ibm.com>2018-09-17 21:39:02 -0500
commit801462feb7d6c303cfc4c3338351d4d57de70c50 (patch)
tree6054bb6b270bfd0b5821118e5d0fd7b100ba88d1 /platforms
parentbb27c7219dc62eebc1a35d0d83222c40fbb0a384 (diff)
downloadskiboot-801462feb7d6c303cfc4c3338351d4d57de70c50.zip
skiboot-801462feb7d6c303cfc4c3338351d4d57de70c50.tar.gz
skiboot-801462feb7d6c303cfc4c3338351d4d57de70c50.tar.bz2
core/i2c: Remove bus specific alloc and free callbacks
These are now pointless and they can be replaced with zalloc() and free(). Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/ibm-fsp/firenze-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platforms/ibm-fsp/firenze-pci.c b/platforms/ibm-fsp/firenze-pci.c
index 44fa6b5..e075e37 100644
--- a/platforms/ibm-fsp/firenze-pci.c
+++ b/platforms/ibm-fsp/firenze-pci.c
@@ -825,7 +825,7 @@ static void firenze_pci_setup_power_mgt(struct pci_slot *slot,
if (!plat_slot->i2c_bus)
return;
- plat_slot->req = i2c_alloc_req(plat_slot->i2c_bus);
+ plat_slot->req = zalloc(sizeof(*plat_slot->req));
if (!plat_slot->req)
return;