minor changes to remove a warning here. (trivial)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>


git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@504 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Stefan Reinauer 2007-10-10 16:55:03 +00:00
commit 9e4a632f6e

View file

@ -394,13 +394,14 @@ static struct lb_memory *build_lb_mem(struct lb_header *head)
struct lb_devtree *lb_devtree(struct lb_header *head)
{
struct lb_devtree *lbdev = NULL;
struct device *dev = NULL;
lbdev = (struct lb_devtree *)lb_new_record(head);
lbdev->tag = LB_TAG_DEVTREE_PTR;
lbdev->size = sizeof(*lbdev);
lbdev->dev_root_ptr = &dev_root;
lbdev->dev_root_ptr = (u32)&dev_root; // XXX ouch.
// FIXME we should either copy the device tree completely
// or at least mark it reserved.
return lbdev;
}