diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2019-08-18 21:16:50 +0100 |
---|---|---|
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2019-08-18 21:16:50 +0100 |
commit | c8afd6a9f9c0245e9193dbb44bc7bf9bf4bf21de (patch) | |
tree | d4e8348e30947bb3577b1531ea2767f766aaae23 | |
parent | c79f5342431942264507c46fad3a3033a4aff870 (diff) | |
download | openbios-c8afd6a9f9c0245e9193dbb44bc7bf9bf4bf21de.zip openbios-c8afd6a9f9c0245e9193dbb44bc7bf9bf4bf21de.tar.gz openbios-c8afd6a9f9c0245e9193dbb44bc7bf9bf4bf21de.tar.bz2 |
pci: remove explicit setting of my-self from PCI devices
Since the correct current instance is now being set during probe, there is no
need to explicitly set it whilst creating the device.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rw-r--r-- | drivers/lsi.c | 5 | ||||
-rw-r--r-- | drivers/virtio.c | 4 |
2 files changed, 0 insertions, 9 deletions
diff --git a/drivers/lsi.c b/drivers/lsi.c index bc4893a..a325547 100644 --- a/drivers/lsi.c +++ b/drivers/lsi.c @@ -653,10 +653,6 @@ ob_lsi_init(const char *path, uint64_t mmio, uint64_t ram) global_lsi = lsi; /* Buffer for commands */ - fword("my-self"); - push_str(path); - feval("open-dev to my-self"); - PUSH(0x1000); feval("dma-alloc"); addr = POP(); @@ -695,7 +691,6 @@ ob_lsi_init(const char *path, uint64_t mmio, uint64_t ram) set_int_property(ph, "#address-cells", 1); set_int_property(ph, "#size-cells", 0); - feval("to my-self"); /* Initialise SCRIPTS */ lsi->mmio = (uint8_t *)(uint32_t)mmio; diff --git a/drivers/virtio.c b/drivers/virtio.c index 6008ae9..4f9f5ee 100644 --- a/drivers/virtio.c +++ b/drivers/virtio.c @@ -504,9 +504,6 @@ void ob_virtio_init(const char *path, const char *dev_name, uint64_t common_cfg, VDev *vdev, **_vdev; /* Open ob_virtio */ - fword("my-self"); - push_str(path); - feval("open-dev to my-self"); BIND_NODE_METHODS(get_cur_dev(), ob_virtio); ph = find_ih_method("vdev", my_self()); @@ -532,7 +529,6 @@ void ob_virtio_init(const char *path, const char *dev_name, uint64_t common_cfg, vdev->ring_area = cell2pointer(addr); *_vdev = vdev; - feval("to my-self"); fword("new-device"); push_str("disk"); |