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>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user