aboutsummaryrefslogtreecommitdiff
path: root/src/device/device_util.c
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-02-08 18:58:39 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2014-02-09 23:33:08 +0100
commitb33384a03c903d4a12a4e4f2805bfb53ff96ff3d (patch)
tree030b4de53130da2b4aba085269a3afb7de726df9 /src/device/device_util.c
parentca4f4b8c9eef77fbcad0af3b21885a337a1f2c83 (diff)
device_util: Make device in dev_find_slot_pnp u16.
LDN is 8-bit but coreboot squeezes unrelated info: VLDN in this field. Increase to 16-bit to handle this. Change-Id: I97af1b32dcfaed84980fa3aa4c317dfab6fad6d8 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/5165 Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/device/device_util.c')
-rw-r--r--src/device/device_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/device_util.c b/src/device/device_util.c
index 83decc1188..dc43b9a656 100644
--- a/src/device/device_util.c
+++ b/src/device/device_util.c
@@ -100,7 +100,7 @@ struct device *dev_find_slot_on_smbus(unsigned int bus, unsigned int addr)
* @param device Logical device number.
* @return Pointer to the device structure (if found), 0 otherwise.
*/
-struct device *dev_find_slot_pnp(u16 port, u8 device)
+struct device *dev_find_slot_pnp(u16 port, u16 device)
{
struct device *dev;