<p>Chris Ching has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22110">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">src/soc/amd/stoneyridge: Changed PCI_DEVFN calls to use correct macros<br><br>Change-Id: I001c4ccd0ad7cf2047870b3618e13642144ddf56<br>Signed-off-by: Chris Ching <chingcodes@google.com><br>---<br>M src/soc/amd/stoneyridge/dimmSpd.c<br>M src/soc/amd/stoneyridge/lpc.c<br>2 files changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/22110/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/amd/stoneyridge/dimmSpd.c b/src/soc/amd/stoneyridge/dimmSpd.c<br>index 26d4637..1676aa0 100644<br>--- a/src/soc/amd/stoneyridge/dimmSpd.c<br>+++ b/src/soc/amd/stoneyridge/dimmSpd.c<br>@@ -27,7 +27,7 @@<br>                                                AGESA_READ_SPD_PARAMS *info)<br> {<br>      int spdAddress;<br>-      DEVTREE_CONST struct device *dev = dev_find_slot(0, PCI_DEVFN(0x18, 2));<br>+     DEVTREE_CONST struct device *dev = dev_find_slot(0, DCT_DEVFN));<br>      DEVTREE_CONST struct soc_amd_stoneyridge_config *conf = dev->chip_info;<br> <br>         if ((dev == 0) || (conf == 0))<br>diff --git a/src/soc/amd/stoneyridge/lpc.c b/src/soc/amd/stoneyridge/lpc.c<br>index a67d06a..38cf920 100644<br>--- a/src/soc/amd/stoneyridge/lpc.c<br>+++ b/src/soc/amd/stoneyridge/lpc.c<br>@@ -41,7 +41,7 @@<br>        device_t sm_dev;<br> <br>   /* Enable the LPC Controller */<br>-      sm_dev = dev_find_slot(0, PCI_DEVFN(SMBUS_DEV, SMBUS_FUNC));<br>+ sm_dev = dev_find_slot(0, SMBUS_DEVFN);<br>       dword = pci_read_config32(sm_dev, 0x64);<br>      dword |= 1 << 20;<br>       pci_write_config32(sm_dev, 0x64, dword);<br></pre><p>To view, visit <a href="https://review.coreboot.org/22110">change 22110</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/22110"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I001c4ccd0ad7cf2047870b3618e13642144ddf56 </div>
<div style="display:none"> Gerrit-Change-Number: 22110 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Chris Ching <chingcodes@google.com> </div>