summaryrefslogtreecommitdiff
path: root/src/device/device.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-09-17 10:44:14 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-09-19 10:35:01 +0000
commitd34a785b4912febb2c3085acb400b843859c49a6 (patch)
treeeeb03d15412016e2d6aadd9eaaee87685c08b8f8 /src/device/device.c
parent2e3c880739af228de7cc945ae61b24a4432b607d (diff)
downloadcoreboot-d34a785b4912febb2c3085acb400b843859c49a6.tar.xz
src/device/device.c: Don't use device_t in ramstage
Use of device_t has been abandoned in ramstage. Change-Id: I3d1bdefd00c91a98116ede5dc03c3ce253d1f0ed Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/28645 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/device/device.c')
-rw-r--r--src/device/device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device/device.c b/src/device/device.c
index 7ba9d0a628..dcbaef1279 100644
--- a/src/device/device.c
+++ b/src/device/device.c
@@ -118,7 +118,7 @@ uint64_t uma_memory_size = 0;
*
* @see device_path
*/
-static device_t __alloc_dev(struct bus *parent, struct device_path *path)
+static struct device *__alloc_dev(struct bus *parent, struct device_path *path)
{
struct device *dev, *child;
@@ -152,7 +152,7 @@ static device_t __alloc_dev(struct bus *parent, struct device_path *path)
return dev;
}
-device_t alloc_dev(struct bus *parent, struct device_path *path)
+struct device *alloc_dev(struct bus *parent, struct device_path *path)
{
struct device *dev;
spin_lock(&dev_lock);
@@ -168,7 +168,7 @@ device_t alloc_dev(struct bus *parent, struct device_path *path)
* @param path The relative path from the bus to the appropriate device.
* @return Pointer to a device structure for the device on bus at path.
*/
-device_t alloc_find_dev(struct bus *parent, struct device_path *path)
+struct device *alloc_find_dev(struct bus *parent, struct device_path *path)
{
struct device *child;
spin_lock(&dev_lock);