diff options
author | Furquan Shaikh <furquan@google.com> | 2018-05-31 07:52:00 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2018-06-05 20:57:39 +0000 |
commit | a9b642999bb8b0bb409150edc7adc777794ffe75 (patch) | |
tree | c98a74dea79c538bcb2d26e459d9a069643dc428 /util/sconfig/sconfig.h | |
parent | a0cc5a697ce13dece6833dca41913fe5c467d3d3 (diff) | |
download | coreboot-a9b642999bb8b0bb409150edc7adc777794ffe75.tar.xz |
util/sconfig: Get rid of bus pointer in device structure
The only reason bus pointer existed in device structure in sconfig was
to allow a node to point to the parent which could be a chip and bus
which is the true parent in device tree hierarchy. Now that chip is no
longer a device, there is no need for separate bus and parent
pointers. This change gets rid of the redundant bus pointer in struct
device in sconfig.
BUG=b:80081934
TEST=Verified that static.c generated for all boards built by abuild
is same with and without this change.
Change-Id: I21f8fe1545a9ed53d66d6d4462df4a5d63023844
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/26736
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util/sconfig/sconfig.h')
-rw-r--r-- | util/sconfig/sconfig.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util/sconfig/sconfig.h b/util/sconfig/sconfig.h index 8e1d35c9b8..1f18907331 100644 --- a/util/sconfig/sconfig.h +++ b/util/sconfig/sconfig.h @@ -85,7 +85,6 @@ struct device { struct pci_irq_info pci_irq_info[4]; struct device *parent; - struct device *bus; struct device *next; struct device *nextdev; struct device *children; @@ -110,8 +109,8 @@ void fold_in(struct device *parent); void postprocess_devtree(void); struct chip *new_chip(char *path); -struct device *new_device(struct device *parent, struct device *busdev, - struct chip *chip, const int bus, const char *devnum, +struct device *new_device(struct device *parent, struct chip *chip, + const int bustype, const char *devnum, int enabled); void alias_siblings(struct device *d); void add_resource(struct device *dev, int type, int index, int base); |