summaryrefslogtreecommitdiff
path: root/src/devices
diff options
context:
space:
mode:
authorMyles Watson <mylesgw@gmail.com>2010-09-01 21:03:03 +0000
committerMyles Watson <mylesgw@gmail.com>2010-09-01 21:03:03 +0000
commit70679a095a9f9dde910d5944688f80d2ee4db6b4 (patch)
treef22655f3fe3fa6d4e40b7d4b143525238f7accf8 /src/devices
parentc3fad5633b8b17dc15c56733188fd27aa02589d9 (diff)
downloadcoreboot-70679a095a9f9dde910d5944688f80d2ee4db6b4.tar.xz
Simplify last_dev_p so that it matches comments.
Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5763 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/device.c b/src/devices/device.c
index 434222cc3c..3f3cc57f10 100644
--- a/src/devices/device.c
+++ b/src/devices/device.c
@@ -42,7 +42,7 @@
/** Linked list of ALL devices */
struct device *all_devices = &dev_root;
/** Pointer to the last device */
-extern struct device **last_dev_p;
+extern struct device *last_dev;
/** Linked list of free resources */
struct resource *free_resources = NULL;
@@ -95,8 +95,8 @@ device_t alloc_dev(struct bus *parent, struct device_path *path)
/* Append a new device to the global device list.
* The list is used to find devices once everything is set up.
*/
- *last_dev_p = dev;
- last_dev_p = &dev->next;
+ last_dev->next = dev;
+ last_dev = dev;
spin_unlock(&dev_lock);
return dev;