From c8afd6a9f9c0245e9193dbb44bc7bf9bf4bf21de Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Sun, 18 Aug 2019 21:16:50 +0100 Subject: 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 --- drivers/lsi.c | 5 ----- drivers/virtio.c | 4 ---- 2 files changed, 9 deletions(-) diff --git a/drivers/lsi.c b/drivers/lsi.c index bc4893a5..a3255479 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 6008ae95..4f9f5ee8 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"); -- cgit v1.2.1